code: def testInconsistantInverseTemperaturesAndStateSizeRaises(self):
      target = normal.Normal(0.0, 1.0)
      inverse_temperatures = [1.0, 0.5, 0.25]  # Implies num_replica = 3
      current_state = tf.zeros((4,))  # Implies num_replica = 4
  
      def make_kernel_fn(target_log_prob_fn):
          return hmc.HamiltonianMonteCarlo(
              target_log_prob_fn=target_log_prob_fn,
              step_size=0.1,
              num_leapfrog_steps=3,
          )
  
      remc = replica_exchange_mc.ReplicaExchangeMC(
          target_log_prob_fn=target.log_prob,
          inverse_temperatures=inverse_temperatures,
          state_includes_replicas=True,
          make_kernel_fn=make_kernel_fn,
          swap_proposal_fn=replica_exchange_mc.default_swap_proposal_fn(
              prob_swap=1.0
          ),
      )
  
      with self.assertRaisesRegex(ValueError, "Number of replicas"):
          sample.sample_chain(
              num_results=5,
              current_state=current_state,
              kernel=remc,
              seed=_set_seed(),
          )
  
imports: from absl import logging
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import categorical
  from tensorflow_probability.python.distributions import mixture_same_family
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.internal import test_combinations
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import unnest
  from tensorflow_probability.python.mcmc import diagnostic
  from tensorflow_probability.python.mcmc import hmc
  from tensorflow_probability.python.mcmc import random_walk_metropolis
  from tensorflow_probability.python.mcmc import replica_exchange_mc
  from tensorflow_probability.python.mcmc import sample
  from tensorflow_probability.python.mcmc import simple_step_size_adaptation
  from tensorflow_probability.python.stats import sample_stats
label_desc: Use image node_id 11 for calling the REMCTest obj's underlying member method code with example usage: obj.testInconsistantInverseTemperaturesAndStateSizeRaises() and returns: hmc