code: def testMapValuesRankNotEqualToOneRaises(self):
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Rank of map_values must be 1"
      ):
          bijector = categorical_to_discrete.CategoricalToDiscrete(
              map_values=[[1, 2], [3, 4]], validate_args=True
          )
          self.evaluate(bijector.map_values)
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import categorical_to_discrete
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 2 for calling the CategoricalToDiscreteTest obj's underlying member method code with example usage: obj.testMapValuesRankNotEqualToOneRaises() without return types