code: def check_complex_value(f, x1, y1, x2, y2, exact=True):
      z1 = np.array([complex(x1, y1)])
      z2 = complex(x2, y2)
      with np.errstate(invalid="ignore"):
          if exact:
              assert_equal(f(z1), z2)
          else:
              assert_almost_equal(f(z1), z2)
  
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 2 for calling a global function with example usage: check_complex_value(f, x1, y1, x2, y2, exact) without return types