code: def helper(self, geom, splitter, expected_chunks):
      s = split(geom, splitter)
      assert s.geom_type == "GeometryCollection"
      assert len(s.geoms) == expected_chunks
      if expected_chunks > 1:
          # split --> expected collection that when merged is again equal to original geometry
          if s.geoms[0].geom_type == "LineString":
              self.assertTrue(
                  linemerge(s).simplify(0.000001).equals(geom)
              )
          elif s.geoms[0].geom_type == "Polygon":
              union = unary_union(s).simplify(0.000001)
              assert union.equals(geom)
              assert union.area == geom.area
          else:
              raise ValueError
      elif expected_chunks == 1:
          # not split --> expected equal to line
          assert s.geoms[0].equals(geom)
  
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 TestSplitGeometry obj's underlying member method code with example usage: obj.helper(geom, splitter, expected_chunks) without return types