code: def test_set_operation_prec_reduce_1dim(
      n, func, related_func, grid_size
  ):
      actual = func(reduce_test_data[:n], grid_size=grid_size)
      # perform the reduction in a python loop and compare
      expected = reduce_test_data[0]
      for i in range(1, n):
          expected = related_func(
              expected, reduce_test_data[i], grid_size=grid_size
          )
  
      assert shapely.equals(actual, expected)
  
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 17 for calling a global function with example usage: test_set_operation_prec_reduce_1dim(n, func, related_func, grid_size) without return types