code: def test_split_poly_with_line(self):
      # crossing at 2 points --> return 2 segments
      splitter = LineString([(1, 3), (1, -3)])
      self.helper(self.poly_simple, splitter, 2)
      self.helper(self.poly_hole, splitter, 2)
  
      # touching the boundary--> return equal
      splitter = LineString([(0, 2), (5, 2)])
      self.helper(self.poly_simple, splitter, 1)
      self.helper(self.poly_hole, splitter, 1)
  
      # inside the polygon --> return equal
      splitter = LineString([(0.2, 0.2), (1.7, 1.7), (3, 2)])
      self.helper(self.poly_simple, splitter, 1)
      self.helper(self.poly_hole, splitter, 1)
  
      # outside the polygon --> return equal
      splitter = LineString([(0, 3), (3, 3), (3, 0)])
      self.helper(self.poly_simple, splitter, 1)
      self.helper(self.poly_hole, splitter, 1)
  
imports: import unittest
  import pytest
  from shapely.errors import GeometryTypeError
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  from shapely.ops import linemerge, split, unary_union
label_desc: Use image node_id 1 for calling the TestSplitPolygon obj's underlying member method code with example usage: obj.test_split_poly_with_line() without return types