code: def testSegmentedRange(self, limits):
      limits = np.int32(limits)
      self.assertAllEqual(
          tf.ragged.range(limits).flat_values,
          bates._segmented_range(limits),
      )
  
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 14 for calling the BatesTest obj's underlying member method code with example usage: obj.testSegmentedRange(limits) without return types