code: def test_arg_reductions(reduction):
      x = np.random.default_rng().random((10, 10, 10))
      dx = da.from_array(x, chunks=(3, 4, 5))
      mx = np.ma.masked_greater(x, 0.4)
      dmx = da.ma.masked_greater(dx, 0.4)
  
      dfunc = getattr(da, reduction)
      func = getattr(np, reduction)
  
      assert_eq_ma(dfunc(dmx), func(mx))
      assert_eq_ma(dfunc(dmx, 0), func(mx, 0))
      assert_eq_ma(dfunc(dmx, 1), func(mx, 1))
      assert_eq_ma(dfunc(dmx, 2), func(mx, 2))
  
imports: from __future__ import annotations
  import random
  import sys
  from copy import deepcopy
  from itertools import product
  import numpy
  import pytest
  import dask.array
  from dask.array.numpy_compat import ComplexWarning, _numpy_123
  from dask.array.utils import assert_eq
  from dask.base import tokenize
  from dask.utils import typename
label_desc: Use image node_id 14 for calling a global function with example usage: test_arg_reductions(reduction) without return types