docstr: Check the exception when input is not a SparseTensor.
code: def test_convert_to_block_diag_2d_exception_raised_types(self):
      """Check the exception when input is not a SparseTensor."""
      with self.assertRaisesRegexp(
          TypeError, "'data' must be a 'SparseTensor'."
      ):
          utils.convert_to_block_diag_2d(np.zeros(shape=(3, 3, 3)))
  
      with self.assertRaisesRegexp(
          TypeError, "'sizes' must have an integer type."
      ):
          utils.convert_to_block_diag_2d(
              _dense_to_sparse(np.ones(shape=(3, 3, 3))),
              np.ones(shape=(3, 2)),
          )
  
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 2 for calling the UtilsConvertToBlockDiag2dTests obj's underlying member method code with example usage: obj.test_convert_to_block_diag_2d_exception_raised_types() without return types