code: def test_geometrycollections_out(indices, expected):
      out = np.empty(4, dtype=object)
      out[3] = empty_point
      actual = shapely.geometrycollections(
          [point, line_string], indices=indices, out=out
      )
      assert_geometries_equal(out, expected)
      assert actual is out
  
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal
  import shapely
  from shapely import LinearRing, Polygon
  from shapely.testing import assert_geometries_equal
  from shapely.tests.common import empty_point, line_string, linear_ring, point, polygon
label_desc: Use image node_id 32 for calling a global function with example usage: test_geometrycollections_out(indices, expected) without return types