code: def test_unique_masked(self):
      # issue 8664
      x = np.array(
          [64, 0, 1, 2, 3, 63, 63, 0, 0, 0, 1, 2, 0, 63, 0],
          dtype="uint8",
      )
      y = np.ma.masked_equal(x, 0)
  
      v = np.unique(y)
      v2, i, c = np.unique(y, return_index=True, return_counts=True)
  
      msg = "Unique returned different results when asked for index"
      assert_array_equal(v.data, v2.data, msg)
      assert_array_equal(v.mask, v2.mask, msg)
  
imports: import numpy
  from numpy import ediff1d, intersect1d, setxor1d, union1d, setdiff1d, unique, isin
  from numpy.exceptions import AxisError
  from numpy.testing import assert_array_equal, assert_equal, assert_raises, assert_raises_regex
  import pytest
label_desc: Use image node_id 8 for calling the TestUnique obj's underlying member method code with example usage: obj.test_unique_masked() without return types