docstr: Check the exception when the shape of 'sizes' is invalid.
code: def test_flatten_batch_to_2d_exception_raised(
      self, error_msg, *shapes
  ):
      """Check the exception when the shape of 'sizes' is invalid."""
      self.assert_exception_is_raised(
          utils.flatten_batch_to_2d,
          error_msg,
          shapes,
          dtypes=(tf.float32, tf.int32),
      )
  
imports: from absl.testing import parameterized
  import numpy
  from scipy import linalg
  import tensorflow
  from tensorflow_graphics.geometry.convolution import utils
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 4 for calling the UtilsFlattenBatchTo2dTests obj's underlying member method code with example usage: obj.test_flatten_batch_to_2d_exception_raised(error_msg) without return types