code: def test_create_from_wkt(wkt_geom, expected):
      if geos_version >= (3, 12, 0):
          # https://github.com/shapely/shapely/issues/1541
          with pytest.raises(GEOSException):
              wkt.loads(wkt_geom)
      else:
          geom = wkt.loads(wkt_geom)
          assert geom.wkt == expected
  
file_path: shapely/shapely/tests/legacy/test_create_inconsistent_dimensionality.py
imports: import pytest
  from shapely import wkt
  from shapely.errors import GEOSException
  from shapely.geometry import LineString, Polygon, shape
  from shapely.geos import geos_version
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_from_wkt(wkt_geom, expected) without return types