docstr: Using invalid `inverse_temperatures`.
code: def testInversePermutationError(self):
      """Using invalid `inverse_temperatures`."""
      dtype = np.float32
  
      def bad_swap_fn(
          num_replica, batch_shape=(), seed=None
      ):  # pylint: disable=unused-argument
          return [1, 2, 0]
  
      remc = replica_exchange_mc.ReplicaExchangeMC(
          target_log_prob_fn=normal.Normal(
              loc=dtype(0), scale=dtype(1)
          ).log_prob,
          inverse_temperatures=dtype([1.0, 0.5, 0.25]),
          make_kernel_fn=lambda tlp: random_walk_metropolis.RandomWalkMetropolis(  # pylint: disable=g-long-lambda
              target_log_prob_fn=tlp,
              new_state_fn=random_walk_metropolis.random_walk_normal_fn(
                  scale=1.0
              ),
          ),
          # Fun fact: of the six length-3 permutations, only two are not
          # "one-time swap" permutations: [1, 2, 0], [2, 0, 1]
          swap_proposal_fn=bad_swap_fn,
          validate_args=True,
      )
      with self.assertRaisesOpError(
          "must be.*self-inverse permutation"
      ):
          self.evaluate(
              sample.sample_chain(
                  num_results=10,
                  num_burnin_steps=2,
                  current_state=[dtype(1)],
                  kernel=remc,
                  trace_fn=None,
                  seed=test_util.test_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 9 for calling the REMCTest obj's underlying member method code with example usage: obj.testInversePermutationError() and returns: list