code: def test_unique_nanequals(self):
      # issue 20326
      a = np.array([1, 1, np.nan, np.nan, np.nan])
      unq = np.unique(a)
      not_unq = np.unique(a, equal_nan=False)
      assert_array_equal(unq, np.array([1, np.nan]))
      assert_array_equal(not_unq, np.array([1, np.nan, np.nan, np.nan]))
  
imports: import numpy
  from numpy.testing import assert_array_equal, assert_equal, assert_raises, assert_raises_regex
  from numpy.lib.arraysetops import ediff1d, intersect1d, setxor1d, union1d, setdiff1d, unique, in1d, isin
  import pytest
label_desc: Use image node_id 10 for calling the TestUnique obj's underlying member method code with example usage: obj.test_unique_nanequals() without return types