code: def test_float_arg_array(geometry, func):
      if (
          geometry.is_empty
          and shapely.get_num_geometries(geometry) > 0
          and (
              func is shapely.delaunay_triangles
              or func is shapely.voronoi_polygons
          )
          and shapely.geos_version < (3, 8, 1)
      ):
          pytest.xfail("GEOS < 3.8.1 crashes with empty geometries")
      if (
          func is shapely.offset_curve
          and shapely.get_type_id(geometry) not in [1, 2]
          and shapely.geos_version < (3, 11, 0)
      ):
          with pytest.raises(
              GEOSException, match="only accept linestrings"
          ):
              func([geometry, geometry], 0.0)
          return
      # voronoi_polygons emits an "invalid" warning when supplied with an empty
      # point (see https://github.com/libgeos/geos/issues/515)
      with ignore_invalid(
          func is shapely.voronoi_polygons
          and shapely.get_type_id(geometry) == 0
          and shapely.geos_version < (3, 12, 0)
      ):
          actual = func([geometry, geometry], 0.0)
      assert actual.shape == (2,)
      assert isinstance(actual[0], Geometry)
  
imports: import numpy
  import pytest
  import shapely
  from shapely import Geometry, GeometryCollection, GEOSException, LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  from shapely.testing import assert_geometries_equal
  from shapely.tests.common import all_types, empty, empty_line_string, empty_point, empty_polygon, ignore_invalid, line_string, multi_point, point, point_z
label_desc: Use image node_id 2 for calling a global function with example usage: test_float_arg_array(geometry, func) without return types