docstr: Error is triggered if the first dim of sample_shape is odd.
docstr_tok: ["Error","is","triggered","if","the","first","dim","of","sample_shape","is","odd","."]
code: def test_antithetic_sample_requires_even_dim(self):
      """Error is triggered if the first dim of sample_shape is odd."""
      mean = np.array([[1.0, 0.1], [0.1, 1.0]])
      scale = np.array([[0.4, -0.1], [0.22, 1.38]])
      sample_shape = [11, 100]
      # Should fail: The first dimension of `sample_shape` should be even.
      with self.assertRaises(tf.errors.InvalidArgumentError):
          self.evaluate(
              tff_rnd.mv_normal_sample(
                  sample_shape,
                  mean=mean,
                  scale_matrix=scale,
                  random_type=tff_rnd.RandomType.PSEUDO_ANTITHETIC,
              )
          )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 13 for calling the RandomTest obj's underlying member method code with example usage: obj.test_antithetic_sample_requires_even_dim() without return types