code: def test_path_continuously_varying_color_op(self):
      xs = [1, 2, 3, 4]
      ys = xs[::-1]
      color = [998, 999, 998, 994]
      data = {"x": xs, "y": ys, "color": color}
      levels = [0, 38, 73, 95, 110, 130, 156, 999]
      colors = [
          "#5ebaff",
          "#00faf4",
          "#ffffcc",
          "#ffe775",
          "#ffc140",
          "#ff8f20",
          "#ff6060",
      ]
      path = Path([data], vdims="color").opts(
          color="color", color_levels=levels, cmap=colors
      )
      plot = mpl_renderer.get_plot(path)
      artist = plot.handles["artist"]
      self.assertEqual(np.asarray(artist.get_array()), np.array(color))
      self.assertEqual(artist.get_clim(), (994, 999))
  
imports: import numpy
  import pytest
  from holoviews.core import NdOverlay
  from holoviews.core.options import AbbreviatedException
  from holoviews.core.spaces import HoloMap
  from holoviews.element import Contours, Path, Polygons
  from .test_plot import TestMPLPlot, mpl_renderer
label_desc: Use image node_id 1 for calling the TestPathPlot obj's underlying member method code with example usage: obj.test_path_continuously_varying_color_op() without return types