code: def test_non_finite_distance(distance):
      g = LineString([(0, 0), (10, 0)])
      with pytest.raises(ValueError, match="distance must be finite"):
          g.parallel_offset(distance)
  
file_path: shapely/shapely/tests/legacy/test_parallel_offset.py
imports: import unittest
  import pytest
  from shapely.geometry import LinearRing, LineString
  from shapely.testing import assert_geometries_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_non_finite_distance(distance) without return types