code: def testBoundingShape(
      self,
      rt,
      expected,
      axis=None,
      out_type=None,
      rt_row_splits_dtype=dtypes.int64,
      rt_ragged_rank=None,
  ):
      rt = ragged_factory_ops.constant(
          rt,
          ragged_rank=rt_ragged_rank,
          row_splits_dtype=rt_row_splits_dtype,
      )
      bounding_shape = rt.bounding_shape(axis=axis, out_type=out_type)
      self.assertAllEqual(bounding_shape, expected)
      if out_type is not None:
          self.assertEqual(bounding_shape.dtype, out_type)
      else:
          self.assertEqual(bounding_shape.dtype, rt_row_splits_dtype)
  
      # If we're testing a configuration that uses `axis`, then make sure
      # that it also works if `axis` is a tensor.
      if axis is not None:
          bounding_shape = rt.bounding_shape(
              axis=constant_op.constant(axis), out_type=out_type
          )
          self.assertAllEqual(bounding_shape, expected)
          if out_type is not None:
              self.assertEqual(bounding_shape.dtype, out_type)
          else:
              self.assertEqual(
                  bounding_shape.dtype, rt_row_splits_dtype
              )
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_tensor_bounding_shape_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the RaggedTensorBoundingShapeOp obj's underlying member method code with example usage: obj.testBoundingShape(rt, expected, axis, out_type, rt_row_splits_dtype, rt_ragged_rank) without return types