code: def test_polygon(self):
      # Empty
      self.assertSVG(Polygon(), "<g />")
      # Valid
      g = Polygon(
          [(35, 10), (45, 45), (15, 40), (10, 20), (35, 10)],
          [[(20, 30), (35, 35), (30, 20), (20, 30)]],
      )
      self.assertSVG(
          g,
          '<path fill-rule="evenodd" fill="#66cc99" stroke="#555555" '
          'stroke-width="2.0" opacity="0.6" d="M 35.0,10.0 L 45.0,45.0 L '
          "15.0,40.0 L 10.0,20.0 L 35.0,10.0 z M 20.0,30.0 L 35.0,35.0 L "
          '30.0,20.0 L 20.0,30.0 z" />',
      )
      self.assertSVG(
          g,
          '<path fill-rule="evenodd" fill="#66cc99" stroke="#555555" '
          'stroke-width="10.0" opacity="0.6" d="M 35.0,10.0 L 45.0,45.0 L '
          "15.0,40.0 L 10.0,20.0 L 35.0,10.0 z M 20.0,30.0 L 35.0,35.0 L "
          '30.0,20.0 L 20.0,30.0 z" />',
          scale_factor=5,
      )
      # Invalid
      self.assertSVG(
          Polygon([(0, 40), (0, 0), (40, 40), (40, 0), (0, 40)]),
          '<path fill-rule="evenodd" fill="#ff3333" stroke="#555555" '
          'stroke-width="2.0" opacity="0.6" d="M 0.0,40.0 L 0.0,0.0 L '
          '40.0,40.0 L 40.0,0.0 L 0.0,40.0 z" />',
      )
  
file_path: shapely/shapely/tests/legacy/test_svg.py
imports: import os
  import unittest
  from xml.dom.minidom import parseString
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  from shapely.geometry.collection import GeometryCollection
label_desc: Use image node_id 6 for calling the SvgTestCase obj's underlying member method code with example usage: obj.test_polygon() without return types