code: def test_reductions_allmasked(dtype, reduction):
      x = np.ma.masked_array([1, 2], mask=True)
      dx = da.from_array(x, asarray=False)
  
      dfunc = getattr(da, reduction)
      func = getattr(np, reduction)
  
      assert_eq_ma(dfunc(dx), func(x))
  
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 13 for calling a global function with example usage: test_reductions_allmasked(dtype, reduction) without return types