code: def guess_shapes(image_shape, pyramid_levels):
      """Guess shapes based on pyramid levels.
  
      Args
           image_shape: The shape of the image.
           pyramid_levels: A list of what pyramid levels are used.
  
      Returns
          A list of image shapes at each pyramid level.
      """
      image_shape = np.array(image_shape[:2])
      image_shapes = [
          (image_shape + 2**x - 1) // (2**x) for x in pyramid_levels
      ]
      return image_shapes
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/utils/anchors.py
imports: import numpy
  from tensorflow import keras
label_desc: Use image node_id 4 for calling a global function with example usage: guess_shapes(image_shape, pyramid_levels) and returns: image_shapes