docstr: Tests that an error is raised if the ground truth is wrong.
docstr_tok: ["Tests","that","an","error","is","raised","if","the","ground","truth","is","wrong","."]
code: def testBadGroundTruthWithMC(self):
      """Tests that an error is raised if the ground truth is wrong."""
      model = TestModel(ground_truth_mean=-10.0)
      with self.assertRaisesRegexp(
          AssertionError, "Not equal to tolerance"
      ):
          self.validate_ground_truth_using_monte_carlo(
              model,
              num_samples=4000,
          )
  
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 9 for calling the InferenceGymTestCaseTest obj's underlying member method code with example usage: obj.testBadGroundTruthWithMC() without return types