code: def test_transform(geoms, include_z, interleaved):
      geoms = np.array(geoms, np.object_)
      coordinates_before = get_coordinates(geoms, include_z=include_z)
      if interleaved:
          transformation = lambda coords: coords + 1  # noqa: E731
      elif not include_z:
          transformation = lambda x, y: (x + 1, y + 1)  # noqa: E731
      else:
          transformation = lambda x, y, z: (
              x + 1,
              y + 1,
              z + 1,
          )  # noqa: E731
      new_geoms = transform(
          geoms,
          transformation,
          include_z=include_z,
          interleaved=interleaved,
      )
      assert new_geoms is not geoms
      coordinates_after = get_coordinates(
          new_geoms, include_z=include_z
      )
      assert_allclose(
          coordinates_before + 1, coordinates_after, equal_nan=True
      )
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_equal
  import shapely
  from shapely import count_coordinates, get_coordinates, set_coordinates, transform
  from shapely.tests.common import empty, empty_line_string_z, empty_point, empty_point_z, geometry_collection, geometry_collection_z, line_string, line_string_z, linear_ring, multi_line_string, multi_point, multi_polygon, point, point_z, polygon, polygon_with_hole, polygon_z
label_desc: Use image node_id 11 for calling a global function with example usage: test_transform(geoms, include_z, interleaved) without return types