human
Complete the below
def get_isnan(dtype):

    ''''A generic isnan() function'
    '''
 Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    if isinstance(dtype, (types.Float, types.Complex)):
        return np.isnan
    else:
        @register_jitable
        def _trivial_isnan(x):
            return False
        return _trivial_isnan