docstr: Check that invalid input data rank triggers the right exceptions.
code: def test_input_rank_exception_raised(self, *shapes):
      """Check that invalid input data rank triggers the right exceptions."""
      self.assert_exception_is_raised(
          utils.flatten_batch_to_2d,
          "must have a rank greater than 2",
          shapes,
      )
  
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 1 for calling the UtilsFlattenBatchTo2dTests obj's underlying member method code with example usage: obj.test_input_rank_exception_raised() without return types