def asarray(array):
    if not isinstance(array, Array):
        name = 'asarray-' + tokenize(array)
        if not hasattr(array, 'shape'):
            array = np.asarray(array)
        array = from_array(array, chunks=array.shape, name=name)
    return array
Coerce argument into a dask array
dataset/ETHPy150Open dask/dask/dask/array/core.py/asarray