code: def test_linestring(self):
      # Empty
      self.assertSVG(LineString(), "<g />")
      # Valid
      g = LineString([(5, 8), (496, -6), (530, 20)])
      self.assertSVG(
          g,
          '<polyline fill="none" stroke="#66cc99" stroke-width="2.0" '
          'points="5.0,8.0 496.0,-6.0 530.0,20.0" opacity="0.8" />',
      )
      self.assertSVG(
          g,
          '<polyline fill="none" stroke="#66cc99" stroke-width="10.0" '
          'points="5.0,8.0 496.0,-6.0 530.0,20.0" opacity="0.8" />',
          scale_factor=5,
      )
      # Invalid
      self.assertSVG(
          LineString([(0, 0), (0, 0)]),
          '<polyline fill="none" stroke="#ff3333" stroke-width="2.0" '
          'points="0.0,0.0 0.0,0.0" opacity="0.8" />',
      )
  
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 4 for calling the SvgTestCase obj's underlying member method code with example usage: obj.test_linestring() without return types