code: def test_unique_equal_nan(self, xp, dtype, equal_nan):
      if xp.dtype(dtype).kind == "c":
          # Nan and Nan+Nan*1j are collapsed when equal_nan=True
          a = xp.array(
              [
                  [complex(xp.nan, 3), 2, complex(7, xp.nan)],
                  [xp.nan, complex(xp.nan, xp.nan), 2],
                  [xp.nan, 1, complex(xp.nan, -1)],
              ],
              dtype=dtype,
          )
      else:
          a = xp.array(
              [
                  [2, xp.nan, 2],
                  [xp.nan, 1, xp.nan],
                  [xp.nan, 1, xp.nan],
              ],
              dtype=dtype,
          )
      return xp.unique(a, axis=0, equal_nan=equal_nan)
  
imports: import unittest
  import pytest
  import numpy
  import cupy
  from cupy import testing
label_desc: Use image node_id 16 for calling the TestUnique obj's underlying member method code with example usage: obj.test_unique_equal_nan(xp, dtype, equal_nan) and returns: xp