code: def test_evaluate_invalid_argument_exception_raised(
      self, error_msg, ground_truth, predictions, grid_size
  ):
      with self.assertRaisesRegexp(
          (tf.errors.InvalidArgumentError, ValueError), error_msg
      ):
          self.evaluate(
              intersection_over_union.evaluate(
                  ground_truth, predictions, grid_size
              )
          )
  
file_path: graphics/tensorflow_graphics/nn/metric/tests/intersection_over_union_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.nn.metric import intersection_over_union
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 2 for calling the IntersectionOverUnionTest obj's underlying member method code with example usage: obj.test_evaluate_invalid_argument_exception_raised(error_msg, ground_truth, predictions, grid_size) without return types