code: def _bounding_shape(tensor):
      """Computes the bounding shape for given tensor.
  
      Args:
        tensor: The tensor to compute the bounding shape for.
  
      Returns:
        The bounding shape of the tensor.
      """
      if isinstance(tensor, tf.RaggedTensor):
          return tensor.bounding_shape()
      else:
          return tf.shape(tensor)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import functools
  import six
  import tensorflow
  from tensorflow import estimator
  from google.protobuf import descriptor_pb2
  from tensorflow_ranking.python import utils
label_desc: Use image node_id 5 for calling a global function with example usage: _bounding_shape(tensor) and returns: tensor, tf