code: def testUnnormalizedLogProb(self):
      x = 1.0
  
      model = TestModel()
      unnormalized_log_prob = model.unnormalized_log_prob(x)
      manual_unnormalized_log_prob = (
          model.prior_distribution().log_prob(x)
          + model.log_likelihood(x)
      )
  
      self.assertAllClose(
          self.evaluate(manual_unnormalized_log_prob),
          self.evaluate(unnormalized_log_prob),
      )
  
file_path: probability/spinoffs/inference_gym/inference_gym/targets/bayesian_model_test.py
imports: 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 1 for calling the BayesianModelTest obj's underlying member method code with example usage: obj.testUnnormalizedLogProb() without return types