code: def test_spherical_in_inf_complex(self):
      # https://dlmf.nist.gov/10.52.E5
      # Ideally, i1n(n, 1j*inf) = 0 and i1n(n, (1+1j)*inf) = (1+1j)*inf, but
      # this appears impossible to achieve because C99 regards any complex
      # value with at least one infinite  part as a complex infinity, so
      # 1j*inf cannot be distinguished from (1+1j)*inf.  Therefore, nan is
      # the correct return value.
      n = 7
      x = np.array([-inf + 0j, inf + 0j, inf * (1 + 1j)])
      assert_allclose(spherical_in(n, x), np.array([-inf, inf, nan]))
  
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_allclose, assert_array_almost_equal, suppress_warnings
  import pytest
  from numpy import sin, cos, sinh, cosh, exp, inf, nan, r_, pi
  from scipy.special import spherical_jn, spherical_yn, spherical_in, spherical_kn
  from scipy.integrate import quad
label_desc: Use image node_id 5 for calling the TestSphericalIn obj's underlying member method code with example usage: obj.test_spherical_in_inf_complex() without return types