code: def test_interpolate(self):
      # successful interpolation
      test_line = LineString([(1, 1), (1, 2)])
      known_point = Point(1, 1.5)
      interpolated_point = test_line.interpolate(0.5, normalized=True)
      assert interpolated_point == known_point
  
      # Issue #653; should nog segfault for empty geometries
      empty_line = loads("LINESTRING EMPTY")
      assert empty_line.is_empty
      interpolated_point = empty_line.interpolate(0.5, normalized=True)
      assert interpolated_point.is_empty
  
      # invalid geometry should raise TypeError on exception
      polygon = loads("POLYGON EMPTY")
      with pytest.raises(TypeError, match="incorrect geometry type"):
          polygon.interpolate(0.5, normalized=True)
  
file_path: shapely/shapely/tests/legacy/test_operations.py
imports: import unittest
  import pytest
  import shapely
  from shapely.errors import TopologicalError
  from shapely.geometry import GeometryCollection, LineString, MultiPoint, Point, Polygon
  from shapely.wkt import loads
label_desc: Use image node_id 4 for calling the OperationsTestCase obj's underlying member method code with example usage: obj.test_interpolate() without return types