code: def test_array_equal_complex_equal_nan(self, xp, dtype):
      a = xp.array([1 + 2j], dtype=dtype)
      b = a.copy()
      b.imag = xp.nan
      a.real = xp.nan
      return xp.array_equal(a, b, equal_nan=True)
  
imports: import operator
  import unittest
  import numpy
  import cupy
  from cupy import testing
label_desc: Use image node_id 5 for calling the TestArrayEqual obj's underlying member method code with example usage: obj.test_array_equal_complex_equal_nan(xp, dtype) and returns: xp