code: def test_accessors():
      x = np.random.default_rng().random((10, 10))
      dx = da.from_array(x, chunks=(3, 4))
      mx = np.ma.masked_greater(x, 0.4)
      dmx = da.ma.masked_greater(dx, 0.4)
  
      assert_eq(da.ma.getmaskarray(dmx), np.ma.getmaskarray(mx))
      assert_eq(da.ma.getmaskarray(dx), np.ma.getmaskarray(x))
      assert_eq(da.ma.getdata(dmx), np.ma.getdata(mx))
      assert_eq(da.ma.getdata(dx), np.ma.getdata(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 16 for calling a global function with example usage: test_accessors() without return types