code: def default_make_tempered_target_log_prob_fn(
      prior_log_prob_fn, likelihood_log_prob_fn, inverse_temperatures
  ):
      """Helper which creates inner kernel target_log_prob_fn."""
  
      def _tempered_target_log_prob(*args):
          priorlogprob = tf.identity(
              prior_log_prob_fn(*args), name="prior_log_prob"
          )
          loglike = tf.identity(
              likelihood_log_prob_fn(*args), name="likelihood_log_prob"
          )
          return tf.identity(
              priorlogprob + loglike * inverse_temperatures,
              name="tempered_logp",
          )
  
      return _tempered_target_log_prob
  
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.mcmc import weighted_resampling
  from tensorflow_probability.python.internal import broadcast_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.math.generic import log1mexp
  from tensorflow_probability.python.math.generic import log_add_exp
  from tensorflow_probability.python.math.generic import reduce_logmeanexp
  from tensorflow_probability.python.mcmc import hmc
  from tensorflow_probability.python.mcmc import random_walk_metropolis
  from tensorflow_probability.python.mcmc import transformed_kernel
  from tensorflow_probability.python.mcmc.internal import util
label_desc: Use image node_id 2 for calling a global function with example usage: default_make_tempered_target_log_prob_fn(prior_log_prob_fn, likelihood_log_prob_fn, inverse_temperatures) and returns: _tempered_target_log_prob, tf