code: def test_areaplot(chart_2d, area_plot):
      x = [-2, -1, 0, 1, 2]
      y1 = [4, 1, 0, -1, -4]
      y2 = [-4, -2, 0, 2, 4]
      c = (1.0, 0.0, 1.0, 1.0)
      l = "Line"
  
      # Test constructor
      plot = charts.AreaPlot(chart_2d, x, y1, y2, c, l)
      assert plot._chart == weakref.proxy(chart_2d)
      assert np.allclose(plot.x, x)
      assert np.allclose(plot.y1, y1)
      assert np.allclose(plot.y2, y2)
      assert plot.color == c
      assert plot.label == l
  
      # Test remaining properties
      area_plot.update(x, y1, y2)
      assert np.allclose(area_plot.x, x)
      assert np.allclose(area_plot.y1, y1)
      assert np.allclose(area_plot.y2, y2)
  
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 39 for calling a global function with example usage: test_areaplot(chart_2d, area_plot) without return types