code: def testBetainc(self, sigma, rtol, atol):
      # This operation is only supported for float32 and float64.
      for dtype in self.numeric_types & {np.float32, np.float64}:
          # Randomly generate a, b, x in the numerical domain of betainc.
          # Compare against the implementation in SciPy.
          a = np.abs(np.random.randn(10, 10) * sigma).astype(
              dtype
          )  # in (0, infty)
          b = np.abs(np.random.randn(10, 10) * sigma).astype(
              dtype
          )  # in (0, infty)
          x = np.random.rand(10, 10).astype(dtype)  # in (0, 1)
          expected = sps.betainc(a, b, x, dtype=dtype)
          self._testTernary(
              math_ops.betainc, a, b, x, expected, rtol=rtol, atol=atol
          )
  
imports: from absl.testing import parameterized
  import numpy
  import scipy.special
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 9 for calling the TernaryOpsTest obj's underlying member method code with example usage: obj.testBetainc(sigma, rtol, atol) without return types