code: def test_array(self, stride, astype):
      arr = np.array(
          [
              complex(np.nan, np.nan),
              complex(np.nan, np.inf),
              complex(np.inf, np.nan),
              complex(np.inf, np.inf),
              complex(0.0, np.inf),
              complex(np.inf, 0.0),
              complex(0.0, 0.0),
              complex(0.0, np.nan),
              complex(np.nan, 0.0),
          ],
          dtype=astype,
      )
      abs_true = np.array(
          [
              np.nan,
              np.inf,
              np.inf,
              np.inf,
              np.inf,
              np.inf,
              0.0,
              np.nan,
              np.nan,
          ],
          dtype=arr.real.dtype,
      )
      sq_true = np.array(
          [
              complex(np.nan, np.nan),
              complex(np.nan, np.nan),
              complex(np.nan, np.nan),
              complex(np.nan, np.inf),
              complex(-np.inf, np.nan),
              complex(np.inf, np.nan),
              complex(0.0, 0.0),
              complex(np.nan, np.nan),
              complex(np.nan, np.nan),
          ],
          dtype=astype,
      )
      with np.errstate(invalid="ignore"):
          assert_equal(np.abs(arr[::stride]), abs_true[::stride])
          assert_equal(np.square(arr[::stride]), sq_true[::stride])
  
imports: import sys
  import platform
  import pytest
  import numpy
  import numpy._core._multiarray_umath
  from numpy.testing import assert_raises, assert_equal, assert_array_equal, assert_almost_equal, assert_array_max_ulp
label_desc: Use image node_id 1 for calling the TestSpecialComplexAVX obj's underlying member method code with example usage: obj.test_array(stride, astype) without return types