code: def _prepare_input(geometry, prepare):
      """Prepare without modifying inplace"""
      if prepare:
          geometry = shapely.transform(
              geometry, lambda x: x
          )  # makes a copy
          shapely.prepare(geometry)
          return geometry
      else:
          return geometry
  
imports: import numpy
  import pytest
  import shapely
  from shapely import GeometryCollection, LinearRing, LineString, MultiLineString, Point
  from shapely.errors import UnsupportedGEOSVersionError
  from shapely.testing import assert_geometries_equal
  from shapely.tests.common import empty_line_string, empty_point, line_string, linear_ring, multi_line_string, multi_point, multi_polygon, point, polygon
label_desc: Use image node_id 19 for calling a global function with example usage: _prepare_input(geometry, prepare) and returns: geometry, geometry