code: def test_polygons_line_width_op(self):
      polygons = Polygons(
          [
              {("x", "y"): [(0, 0), (0, 1), (1, 0)], "line_width": 7},
              {("x", "y"): [(1, 0), (1, 1), (0, 1)], "line_width": 3},
          ],
          vdims="line_width",
      ).opts(linewidth="line_width")
      plot = mpl_renderer.get_plot(polygons)
      artist = plot.handles["artist"]
      self.assertEqual(artist.get_linewidths(), [7, 3])
  
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 10 for calling the TestPolygonPlot obj's underlying member method code with example usage: obj.test_polygons_line_width_op() without return types