class_docstr: Test for tfp.math.trapz.
class_docstr_tok: ["Test","for","tfp.math.trapz","."]
code: def test_provide_x_and_dx_args_raises(self):
      with self.assertRaisesWithLiteralMatch(
          ValueError,
          "Not permitted to specify both x and dx input args.",
      ):
          integration.trapz(y=[0, 0.1], x=[0, 0.1], dx=0.5)
  
imports: import hypothesis
  from hypothesis import strategies
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import integration
label_desc: Use image node_id 6 for calling the TrapzTest obj's underlying member method code with example usage: obj.test_provide_x_and_dx_args_raises() without return types