class_docstr: Tests correctness of the `b(x) = 1 / x` bijector.
class_docstr_tok: ["Tests","correctness","of","the","`","b","(","x",")","=","1","\/","x","`","bijector","."]
code: def testBijector(self, lower, upper):
      bijector = reciprocal.Reciprocal()
      self.assertStartsWith(bijector.name, "reciprocal")
      x = tf.linspace(lower, upper, 100)
      y = 1.0 / x
      self.assertAllClose(
          self.evaluate(y), self.evaluate(bijector.forward(x))
      )
      self.assertAllClose(
          self.evaluate(x), self.evaluate(bijector.inverse(y))
      )
  
file_path: probability/tensorflow_probability/python/bijectors/reciprocal_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import reciprocal
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the ReciprocalTest obj's underlying member method code with example usage: obj.testBijector(lower, upper) without return types