code: def test_arange():
      darr = da.arange(77, chunks=13)
      nparr = np.arange(77)
      assert_eq(darr, nparr)
  
      darr = da.arange(2, 13, chunks=5)
      nparr = np.arange(2, 13)
      assert_eq(darr, nparr)
  
      darr = da.arange(4, 21, 9, chunks=13)
      nparr = np.arange(4, 21, 9)
      assert_eq(darr, nparr)
  
      # negative steps
      darr = da.arange(53, 5, -3, chunks=5)
      nparr = np.arange(53, 5, -3)
      assert_eq(darr, nparr)
  
      darr = da.arange(77, chunks=13, dtype=float)
      nparr = np.arange(77, dtype=float)
      assert_eq(darr, nparr)
  
      darr = da.arange(2, 13, chunks=5, dtype=int)
      nparr = np.arange(2, 13, dtype=int)
      assert_eq(darr, nparr)
      assert sorted(da.arange(2, 13, chunks=5).dask) == sorted(
          da.arange(2, 13, chunks=5).dask
      )
      assert sorted(
          da.arange(77, chunks=13, dtype=float).dask
      ) == sorted(da.arange(77, chunks=13, dtype=float).dask)
  
      # 0 size output
      darr = da.arange(0, 1, -0.5, chunks=20)
      nparr = np.arange(0, 1, -0.5)
      assert_eq(darr, nparr)
  
      darr = da.arange(0, -1, 0.5, chunks=20)
      nparr = np.arange(0, -1, 0.5)
      assert_eq(darr, nparr)
  
      # Unexpected or missing kwargs
      with pytest.raises(TypeError, match="whatsthis"):
          da.arange(10, chunks=-1, whatsthis=1)
  
      assert da.arange(10).chunks == ((10,),)
  
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 4 for calling a global function with example usage: test_arange() without return types