human
Complete this python program:
def get_isnan(dtype):
assistant
#Here is the Python code you requested.

    """A generic isnan() function
    """
    if isinstance(dtype, (types.Float, types.Complex)):
        return np.isnan
    else:
        @register_jitable
        def _trivial_isnan(x):
            return False
        return _trivial_isnan