code: def test_segmentize_invalid_max_segment_length(
      geometry, max_segment_length
  ):
      with pytest.raises(
          GEOSException, match="IllegalArgumentException"
      ):
          shapely.segmentize(
              geometry, max_segment_length=max_segment_length
          )
  
imports: import numpy
  import pytest
  import shapely
  from shapely import Geometry, GeometryCollection, GEOSException, LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  from shapely.testing import assert_geometries_equal
  from shapely.tests.common import all_types, empty, empty_line_string, empty_point, empty_polygon, ignore_invalid, line_string, multi_point, point, point_z
label_desc: Use image node_id 43 for calling a global function with example usage: test_segmentize_invalid_max_segment_length(geometry, max_segment_length) without return types