code: def test_distance_duplicated():
      a = Point(1, 2)
      b = LineString([(0, 0), (0, 0), (1, 1)])
      with ignore_invalid(shapely.geos_version < (3, 12, 0)):
          # https://github.com/shapely/shapely/issues/1552
          # GEOS < 3.12 raises "invalid" floating point errors
          actual = shapely.distance(a, b)
      assert actual == 1.0
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  import shapely
  from shapely import GeometryCollection, LineString, MultiPoint, Point, Polygon
  from shapely.tests.common import empty, geometry_collection, ignore_invalid, line_string, linear_ring, multi_line_string, multi_point, multi_polygon, point, point_polygon_testdata, polygon, polygon_with_hole
label_desc: Use image node_id 5 for calling a global function with example usage: test_distance_duplicated() without return types