code: def test_union_all_prec(geom, grid_size, expected):
      actual = shapely.union_all(geom, 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 26 for calling a global function with example usage: test_union_all_prec(geom, grid_size, expected) without return types