docstr: Check the expetion when the shape of sizes is invalid.
code: def test_convert_to_block_diag_2d_exception_raised_sizes(self):
      """Check the expetion when the shape of sizes is invalid."""
      with self.assertRaisesRegexp(ValueError, "must have a rank of 2"):
          utils.convert_to_block_diag_2d(
              _dense_to_sparse(np.ones(shape=(3, 3, 3))),
              np.ones(shape=(3,), dtype=np.int32),
          )
  
      with self.assertRaisesRegexp(ValueError, "must have a rank of 3"):
          utils.convert_to_block_diag_2d(
              _dense_to_sparse(np.ones(shape=(4, 3, 3, 3))),
              np.ones(shape=(4, 3), dtype=np.int32),
          )
  
      with self.assertRaisesRegexp(
          ValueError, "must have exactly 2 dimensions in axis -1"
      ):
          utils.convert_to_block_diag_2d(
              _dense_to_sparse(np.ones(shape=(3, 3, 3))),
              np.ones(shape=(3, 1), dtype=np.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 UtilsConvertToBlockDiag2dTests obj's underlying member method code with example usage: obj.test_convert_to_block_diag_2d_exception_raised_sizes() without return types