code: def testBadNumMaskRaises(self, num_masked):
      with self.assertRaisesRegexp(
          ValueError,
          "Number of masked units {} must be smaller than the event size 1".format(
              num_masked
          ),
      ):
          rnvp = real_nvp.RealNVP(
              num_masked=num_masked,
              shift_and_log_scale_fn=lambda x, _: (x, x),
          )
          rnvp.forward(np.zeros(1))
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import inline
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.bijectors import real_nvp
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.bijectors import shift
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import sample
  from tensorflow_probability.python.distributions import transformed_distribution
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import tf_keras
label_desc: Use image node_id 6 for calling the RealNVPTestCommon obj's underlying member method code with example usage: obj.testBadNumMaskRaises(num_masked) without return types