code: def test_shared_paths_forward(self):
      g1 = LineString([(0, 0), (10, 0), (10, 5), (20, 5)])
      g2 = LineString([(5, 0), (15, 0)])
      result = shared_paths(g1, g2)
  
      assert isinstance(result, GeometryCollection)
      assert len(result.geoms) == 2
      a, b = result.geoms
      assert isinstance(a, MultiLineString)
      assert len(a.geoms) == 1
      assert a.geoms[0].coords[:] == [(5, 0), (10, 0)]
      assert b.is_empty
  
file_path: shapely/shapely/tests/legacy/test_shared_paths.py
imports: import unittest
  import pytest
  from shapely.errors import GeometryTypeError
  from shapely.geometry import GeometryCollection, LineString, MultiLineString, Point
  from shapely.ops import shared_paths
label_desc: Use image node_id 1 for calling the SharedPaths obj's underlying member method code with example usage: obj.test_shared_paths_forward() without return types