code: def test_complex_range_line_plot_2():
      # verify that univariate functions are evaluated with a complex
      # data range (with non-zero imaginary part). There shouln't be any
      # NaN value in the output.
      if not np:
          skip("numpy not installed.")
  
      # NOTE: xfail because sympy's adaptive algorithm is unable to deal with
      # complex number.
  
      x, u = symbols("x, u")
  
      # adaptive and uniform meshing should produce the same data.
      # because of the adaptive nature, just compare the first and last points
      # of both series.
      s1 = LineOver1DRangeSeries(
          abs(sqrt(x)), (x, -5 - 2j, 5 - 2j), adaptive=True
      )
      s2 = LineOver1DRangeSeries(
          abs(sqrt(x)), (x, -5 - 2j, 5 - 2j), adaptive=False, n=10
      )
      with warns(
          RuntimeWarning,
          match="invalid value encountered in sqrt",
          test_stacklevel=False,
      ):
          d1 = s1.get_data()
          d2 = s2.get_data()
          xx1 = [d1[0][0], d1[0][-1]]
          xx2 = [d2[0][0], d2[0][-1]]
          yy1 = [d1[1][0], d1[1][-1]]
          yy2 = [d2[1][0], d2[1][-1]]
          assert np.allclose(xx1, xx2)
          assert np.allclose(yy1, yy2)
  
imports: from sympy import latex, exp, symbols, I, pi, sin, cos, tan, log, sqrt, re, im, arg, frac, Sum, S, Abs, lambdify, Function, dsolve, Eq, floor, Tuple
  from sympy.external import import_module
  from sympy.plotting.series import LineOver1DRangeSeries, Parametric2DLineSeries, Parametric3DLineSeries, SurfaceOver2DRangeSeries, ContourSeries, ParametricSurfaceSeries, ImplicitSeries, _set_discretization_points, List2DSeries
  from sympy.testing.pytest import raises, warns, XFAIL, skip, ignore_warnings
label_desc: Use image node_id 35 for calling a global function with example usage: test_complex_range_line_plot_2() without return types