code: def test_show_in_legend_lines():
      # verify that lines series correctly set the show_in_legend attribute
      x, u = symbols("x, u")
  
      s = LineOver1DRangeSeries(
          cos(x), (x, -2, 2), "test", show_in_legend=True
      )
      assert s.show_in_legend
      s = LineOver1DRangeSeries(
          cos(x), (x, -2, 2), "test", show_in_legend=False
      )
      assert not s.show_in_legend
  
      s = Parametric2DLineSeries(
          cos(x), sin(x), (x, 0, 1), "test", show_in_legend=True
      )
      assert s.show_in_legend
      s = Parametric2DLineSeries(
          cos(x), sin(x), (x, 0, 1), "test", show_in_legend=False
      )
      assert not s.show_in_legend
  
      s = Parametric3DLineSeries(
          cos(x), sin(x), x, (x, 0, 1), "test", show_in_legend=True
      )
      assert s.show_in_legend
      s = Parametric3DLineSeries(
          cos(x), sin(x), x, (x, 0, 1), "test", show_in_legend=False
      )
      assert not s.show_in_legend
  
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 30 for calling a global function with example usage: test_show_in_legend_lines() without return types