code: def testBatesDynamicShapeTensor(self):
      dist = self.make_shapeless_bates(1.0, 0.0, [0.5, 1.0])
      self.assertAllEqual([2], dist.batch_shape_tensor())
      dist = self.make_shapeless_bates(1.0, 0.0, [0.5, 1.0])
      self.evaluate(
          dist.sample(self.shapeless(10), seed=test_util.test_seed())
      )
      dist = self.make_shapeless_bates(1.0, 0.0, [0.5, 1.0])
      self.assertAllEqual(
          self.evaluate(dist.prob(self.shapeless([-1.0, 2.0]))),
          [0.0, 0.0],
      )
      dist = self.make_shapeless_bates(1.0, 0.0, [0.5, 1.0])
      self.assertAllEqual(
          self.evaluate(dist.cdf(self.shapeless([-1.0, 2.0]))),
          [0.0, 1.0],
      )
  
imports: import fractions
  import math
  import sys
  from absl.testing import parameterized
  import hypothesis
  import hypothesis.strategies
  import numpy
  import scipy
  import scipy.integrate
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import bates
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 12 for calling the BatesTest obj's underlying member method code with example usage: obj.testBatesDynamicShapeTensor() without return types