code: def test_reductions_with_negative_axes():
      x = np.random.default_rng().random((4, 4, 4))
      a = da.from_array(x, chunks=2)
  
      assert_eq(a.argmin(axis=-1), x.argmin(axis=-1))
      assert_eq(a.argmin(axis=-1, split_every=2), x.argmin(axis=-1))
  
      assert_eq(a.sum(axis=-1), x.sum(axis=-1))
      assert_eq(a.sum(axis=(0, -1)), x.sum(axis=(0, -1)))
  
imports: from __future__ import annotations
  import os
  import warnings
  from contextlib import nullcontext
  from itertools import permutations, zip_longest
  import pytest
  import itertools
  import dask.array
  import dask.config
  from dask.array.numpy_compat import ComplexWarning, _numpy_122
  from dask.array.utils import assert_eq, same_keys
  from dask.core import get_deps
label_desc: Use image node_id 18 for calling a global function with example usage: test_reductions_with_negative_axes() without return types