code: def test_fabs(self):
      # Test that np.abs(x +- 0j) == np.abs(x) (as mandated by C99 for cabs)
      x = np.array([1 + 0j], dtype=complex)
      assert_array_equal(np.abs(x), np.real(x))
  
      x = np.array([complex(1, np.NZERO)], dtype=complex)
      assert_array_equal(np.abs(x), np.real(x))
  
      x = np.array([complex(np.inf, np.NZERO)], dtype=complex)
      assert_array_equal(np.abs(x), np.real(x))
  
      x = np.array([complex(np.nan, np.NZERO)], dtype=complex)
      assert_array_equal(np.abs(x), np.real(x))
  
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 4 for calling the TestCabs obj's underlying member method code with example usage: obj.test_fabs() without return types