code: def test_lineplot2d(chart_2d, line_plot_2d):
      x = [-2, -1, 0, 1, 2]
      y = [4, 1, 0, -1, -4]
      c = (1.0, 0.0, 1.0, 1.0)
      w = 5
      s = "-."
      l = "Line"
  
      # Test constructor
      plot = charts.LinePlot2D(chart_2d, x, y, c, w, s, l)
      assert plot._chart == weakref.proxy(chart_2d)
      assert np.allclose(plot.x, x)
      assert np.allclose(plot.y, y)
      assert plot.color == c
      assert plot.line_width == w
      assert plot.line_style == s
      assert plot.label == l
  
      # Test remaining properties
      line_plot_2d.update(x, y)
      assert np.allclose(line_plot_2d.x, x)
      assert np.allclose(line_plot_2d.y, y)
  
imports: import itertools
  import platform
  import weakref
  import numpy
  import pytest
  from vtkmodules.vtkRenderingContext2D import vtkPen
  import pyvista
  from pyvista import examples
  from pyvista.plotting import charts
  from pyvista.plotting.colors import COLOR_SCHEMES
label_desc: Use image node_id 37 for calling a global function with example usage: test_lineplot2d(chart_2d, line_plot_2d) without return types