code: def test_coverage_union_overlapping_inputs():
      polygon = Polygon([(1, 1), (1, 0), (0, 0), (0, 1), (1, 1)])
      other = Polygon([(1, 0), (0.9, 1), (2, 1), (2, 0), (1, 0)])
  
      if shapely.geos_version >= (3, 12, 0):
          # Return mostly unchaged output
          result = shapely.coverage_union(polygon, other)
          expected = shapely.multipolygons([polygon, other])
          assert_geometries_equal(result, expected, normalize=True)
      else:
          # Overlapping polygons raise an error
          with pytest.raises(
              shapely.GEOSException,
              match="CoverageUnion cannot process incorrectly noded inputs.",
          ):
              shapely.coverage_union(polygon, other)
  
imports: import numpy
  import pytest
  import shapely
  from shapely import Geometry, GeometryCollection, Polygon
  from shapely.errors import UnsupportedGEOSVersionError
  from shapely.testing import assert_geometries_equal
  from shapely.tests.common import all_types, empty, ignore_invalid, point, polygon
label_desc: Use image node_id 24 for calling a global function with example usage: test_coverage_union_overlapping_inputs() without return types