code: def testShapeInferenceInputBatchDimIndivisibleWithDropRemainder(self):
      dataset = dataset_ops.Dataset.range(10).batch(
          5, drop_remainder=True
      )
      rebatched_dataset = dataset.rebatch(
          batch_size=[2, 2], drop_remainder=True
      )
      expected_shapes = [[2]]
      self.assertEqual(expected_shapes, _flat_shapes(rebatched_dataset))
  
imports: from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the RebatchTest obj's underlying member method code with example usage: obj.testShapeInferenceInputBatchDimIndivisibleWithDropRemainder() without return types