code: def test_set_precision_intersection():
      """Operations should use the most precise presision grid size of the inputs"""
  
      box1 = shapely.normalize(shapely.box(0, 0, 0.9, 0.9))
      box2 = shapely.normalize(shapely.box(0.75, 0, 1.75, 0.75))
  
      assert (
          shapely.get_precision(shapely.intersection(box1, box2)) == 0
      )
  
      # GEOS will use and keep the most precise precision grid size
      box1 = shapely.set_precision(box1, 0.5)
      box2 = shapely.set_precision(box2, 1)
      out = shapely.intersection(box1, box2)
      assert shapely.get_precision(out) == 0.5
      assert_geometries_equal(out, LineString([(1, 1), (1, 0)]))
  
imports: import warnings
  import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, MultiPolygon, Point, Polygon
  from shapely.testing import assert_geometries_equal
  from shapely.tests.common import all_types
  from shapely.tests.common import empty
  from shapely.tests.common import empty_line_string, empty_line_string_z, empty_point, empty_point_z, empty_polygon, equal_geometries_abnormally_yield_unequal, geometry_collection, geometry_collection_z, ignore_invalid, ignore_warnings, line_string, line_string_nan, line_string_z, linear_ring, multi_line_string, multi_line_string_z, multi_point, multi_point_z, multi_polygon, multi_polygon_z, point, point_z, polygon, polygon_with_hole, polygon_with_hole_z, polygon_z
label_desc: Use image node_id 49 for calling a global function with example usage: test_set_precision_intersection() without return types