code: def testBroadcastToRank(self, dim_sizes, rank, expected_dim_sizes):
      shape = RaggedTensorDynamicShape.from_dim_sizes(dim_sizes)
      expected = RaggedTensorDynamicShape.from_dim_sizes(
          expected_dim_sizes
      )
      broadcasted_shape = shape.broadcast_to_rank(rank)
      self.assertShapeEq(broadcasted_shape, expected)
      self.assertEqual(broadcasted_shape.rank, rank)
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_tensor_shape_test.py
imports: from absl.testing import parameterized
  import numpy
  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.ops.ragged import ragged_tensor
  from tensorflow.python.ops.ragged import ragged_tensor_shape
  from tensorflow.python.ops.ragged.ragged_tensor_shape import RaggedTensorDynamicShape
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 3 for calling the RaggedTensorShapeTest obj's underlying member method code with example usage: obj.testBroadcastToRank(dim_sizes, rank, expected_dim_sizes) without return types