code: def test_steps():
      if not np:
          skip("numpy not installed.")
  
      x, u = symbols("x, u")
  
      def do_test(s1, s2):
          if (not s1.is_parametric) and s1.is_2Dline:
              xx1, _ = s1.get_data()
              xx2, _ = s2.get_data()
          elif s1.is_parametric and s1.is_2Dline:
              xx1, _, _ = s1.get_data()
              xx2, _, _ = s2.get_data()
          elif (not s1.is_parametric) and s1.is_3Dline:
              xx1, _, _ = s1.get_data()
              xx2, _, _ = s2.get_data()
          else:
              xx1, _, _, _ = s1.get_data()
              xx2, _, _, _ = s2.get_data()
          assert len(xx1) != len(xx2)
  
      s1 = LineOver1DRangeSeries(
          cos(x), (x, -5, 5), "", adaptive=False, n=40, steps=False
      )
      s2 = LineOver1DRangeSeries(
          cos(x), (x, -5, 5), "", adaptive=False, n=40, steps=True
      )
      do_test(s1, s2)
  
      s1 = List2DSeries([0, 1, 2], [3, 4, 5], steps=False)
      s2 = List2DSeries([0, 1, 2], [3, 4, 5], steps=True)
      do_test(s1, s2)
  
      s1 = Parametric2DLineSeries(
          cos(x), sin(x), (x, -5, 5), adaptive=False, n=40, steps=False
      )
      s2 = Parametric2DLineSeries(
          cos(x), sin(x), (x, -5, 5), adaptive=False, n=40, steps=True
      )
      do_test(s1, s2)
  
      s1 = Parametric3DLineSeries(
          cos(x),
          sin(x),
          x,
          (x, -5, 5),
          adaptive=False,
          n=40,
          steps=False,
      )
      s2 = Parametric3DLineSeries(
          cos(x),
          sin(x),
          x,
          (x, -5, 5),
          adaptive=False,
          n=40,
          steps=True,
      )
      do_test(s1, s2)
  
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 12 for calling a global function with example usage: test_steps() without return types