def wrap_func_shape_as_first_arg(func, *args, **kwargs):
    '\n    Transform np creation function into blocked version\n    '
    if ('shape' not in kwargs):
        (shape, args) = (args[0], args[1:])
    else:
        shape = kwargs.pop('shape')
    if isinstance(shape, Array):
        raise TypeError('Dask array input not supported. Please use tuple, list, or a 1D numpy array instead.')
    parsed = _parse_wrap_args(func, args, kwargs, shape)
    shape = parsed['shape']
    dtype = parsed['dtype']
    chunks = parsed['chunks']
    name = parsed['name']
    kwargs = parsed['kwargs']
    func = partial(func, dtype=dtype, **kwargs)
    graph = BlockwiseCreateArray(name, func, shape, chunks)
    return Array(graph, name, chunks, dtype=dtype, meta=kwargs.get('meta', None))
Transform np creation function into blocked version
def wrap_func_shape_as_first_arg(func, *args, **kwargs):
    '\n    \n    '
    if ('shape' not in kwargs):
        (shape, args) = (args[0], args[1:])
    else:
        shape = kwargs.pop('shape')
    if isinstance(shape, Array):
        raise TypeError('Dask array input not supported. Please use tuple, list, or a 1D numpy array instead.')
    parsed = _parse_wrap_args(func, args, kwargs, shape)
    shape = parsed['shape']
    dtype = parsed['dtype']
    chunks = parsed['chunks']
    name = parsed['name']
    kwargs = parsed['kwargs']
    func = partial(func, dtype=dtype, **kwargs)
    graph = BlockwiseCreateArray(name, func, shape, chunks)
    return Array(graph, name, chunks, dtype=dtype, meta=kwargs.get('meta', None))