code: def test_arr_like_shape(
      funcname, kwargs, shape, dtype, chunks, out_shape
  ):
      np_func = getattr(np, funcname)
      da_func = getattr(da, funcname)
      a = np.random.randint(0, 10, shape).astype(dtype)
      np_r = np_func(a, shape=out_shape, **kwargs)
      da_r = da_func(a, chunks=chunks, shape=out_shape, **kwargs)
  
      assert np_r.shape == da_r.shape
      assert np_r.dtype == da_r.dtype
  
      if "empty" not in funcname:
          assert_eq(np_r, da_r)
  
imports: from __future__ import annotations
  import pytest
  import numpy
  import pytest
  from tlz import concat
  import dask
  import dask.array
  from dask.array.core import normalize_chunks
  from dask.array.numpy_compat import AxisError
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 2 for calling a global function with example usage: test_arr_like_shape(funcname, kwargs, shape, dtype, chunks, out_shape) without return types