code: def project_coords_(coords, from_shape, to_shape):
      """Project coordinates from one image shape to another in-place.
  
      This performs a relative projection, e.g. a point at ``60%`` of the old
      image width will be at ``60%`` of the new image width after projection.
  
      Added in 0.4.0.
  
      Parameters
      ----------
      coords : ndarray or list of tuple of number
          Coordinates to project.
          Either an ``(N,2)`` numpy array or a ``list`` containing ``(x,y)``
          coordinate ``tuple`` s.
  
      from_shape : tuple of int or ndarray
          Old image shape.
  
      to_shape : tuple of int or ndarray
          New image shape.
  
      Returns
      -------
      ndarray
          Projected coordinates as ``(N,2)`` ``float32`` numpy array.
          This function may change the input data in-place.
  
      """
      from_shape = normalize_shape(from_shape)
      to_shape = normalize_shape(to_shape)
      if from_shape[0:2] == to_shape[0:2]:
          return coords
  
      from_height, from_width = from_shape[0:2]
      to_height, to_width = to_shape[0:2]
  
      no_zeros_in_shapes = all(
          [
              v > 0
              for v in [from_height, from_width, to_height, to_width]
          ]
      )
      assert no_zeros_in_shapes, (
          "Expected from_shape and to_shape to not contain zeros. Got shapes "
          "%s (from_shape) and %s (to_shape)." % (from_shape, to_shape)
      )
  
      coords_proj = coords
      if not ia.is_np_array(coords) or coords.dtype.kind != "f":
          coords_proj = np.array(coords).astype(np.float32)
  
      coords_proj[:, 0] = (coords_proj[:, 0] / from_width) * to_width
      coords_proj[:, 1] = (coords_proj[:, 1] / from_height) * to_height
  
      return coords_proj
  
file_path: imgaug/imgaug/augmentables/utils.py
imports: from __future__ import print_function, division, absolute_import
  import copy
  import numpy
  import six.moves
  import imgaug
label_desc: Use image node_id 6 for calling a global function with example usage: project_coords_(coords, from_shape, to_shape) and returns: coords_proj, coords