code: def test_xy_array(a, func, func_bin):
      with ignore_invalid(
          shapely.is_empty(a) and shapely.geos_version < (3, 12, 0)
      ):
          # Empty geometries give 'invalid value encountered' in all predicates
          # (see https://github.com/libgeos/geos/issues/515)
          actual = func([a, a], 2, 3)
          expected = func_bin([a, a], Point(2, 3))
      assert actual.shape == (2,)
      assert actual.dtype == np.bool_
      np.testing.assert_allclose(actual, expected)
  
imports: from functools import partial
  import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, Point
  from shapely.tests.common import all_types, all_types_z, empty, geometry_collection, ignore_invalid, line_string, linear_ring, point, polygon
label_desc: Use image node_id 8 for calling a global function with example usage: test_xy_array(a, func, func_bin) without return types