def type_can_asarray(arr):
    """ Returns True if the type of 'arr' is supported by the Numba `np.asarray`
    implementation, False otherwise.
    """

    ok = (types.Array, types.Sequence, types.Tuple, types.StringLiteral,
          types.Number, types.Boolean, types.containers.ListType)

    return isinstance(arr, ok)
 Returns True if the type of 'arr' is supported by the Numba `np.asarray`
    implementation, False otherwise.
    
numba/np/numpy_support.py