class_docstr: Test for tfp.math.trapz.
class_docstr_tok: ["Test","for","tfp.math.trapz","."]
code: def test_simple_use_with_x_arg(self):
      y = tf.linspace(0.0, 10.0, 11)
      x = tf.linspace(0.0, 10.0, 11)
      integral = self.evaluate(integration.trapz(y, x))
      self.assertAllClose(integral, 50.0)
  
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 2 for calling the TrapzTest obj's underlying member method code with example usage: obj.test_simple_use_with_x_arg() without return types