code: def test_max_allowed_size(self):
      elems = self.evaluate(
          uniform.Uniform(-1.0, 1.0).sample(
              [511], seed=test_util.test_seed()
          )
      )
  
      result = self.evaluate(
          scan_associative(
              operator.add,
              self._maybe_static(elems),
              max_num_levels=8,
              validate_args=True,
          )
      )
      self.assertAllClose(
          result, self.evaluate(tf.cumsum(elems)), atol=1e-4
      )
  
imports: import collections
  import functools
  import operator
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import uniform
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
  from tensorflow_probability.python.math.scan_associative import scan_associative
label_desc: Use image node_id 12 for calling the _ScanAssociativeTest obj's underlying member method code with example usage: obj.test_max_allowed_size() without return types