docstr: Tests that an error is raised if ground truth shapes are wrong.
docstr_tok: ["Tests","that","an","error","is","raised","if","ground","truth","shapes","are","wrong","."]
code: def testBadGroundTruth(self):
      """Tests that an error is raised if ground truth shapes are wrong."""
      model = TestModel(ground_truth_mean=np.array([1, 2]))
      with self.assertRaisesRegex(
          AssertionError,
          r"Checking ground truth mean(.|\n)*Tuples differ",
      ):
          self.validate_log_prob_and_transforms(
              model,
              sample_transformation_shapes=dict(identity=[]),
              check_ground_truth_mean=True,
          )
  
imports: import atexit
  import functools
  from absl import logging
  import jax
  import numpy
  import tensorflow.compat.v2
  import tensorflow.compat.v2
  import tensorflow_probability
  from tensorflow_probability.python.internal import test_util
  from inference_gym import targets
  from inference_gym.internal import test_util
label_desc: Use image node_id 5 for calling the InferenceGymTestCaseTest obj's underlying member method code with example usage: obj.testBadGroundTruth() without return types