code: def _handle_on_image_shape(shape, obj):
      if hasattr(shape, "shape"):
          ia.warn_deprecated(
              "Providing a numpy array for parameter `shape` in "
              "`%s` is deprecated. Please provide a shape tuple, "
              "i.e. a tuple of integers denoting (height, width, [channels]). "
              "Use something similar to `image.shape` to convert an array "
              "to a shape tuple." % (obj.__class__.__name__,)
          )
          shape = normalize_shape(shape)
      else:
          assert isinstance(shape, tuple), (
              "Expected to get a tuple of integers or a numpy array "
              "(deprecated) for parameter `shape` in `%s`. Got type %s."
              % (obj.__class__.__name__, type(shape).__name__)
          )
      return shape
  
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 3 for calling a global function with example usage: _handle_on_image_shape(shape, obj) and returns: shape