code: def testBatchingSchemeMaxLength(self):
      scheme = data_reader.batching_scheme(
          batch_size=20,
          max_length=None,
          min_length_bucket=8,
          length_bucket_step=1.1,
          drop_long_sequences=False,
      )
      self.assertGreater(scheme["max_length"], 10000)
  
      scheme = data_reader.batching_scheme(
          batch_size=20,
          max_length=None,
          min_length_bucket=8,
          length_bucket_step=1.1,
          drop_long_sequences=True,
      )
      self.assertEqual(scheme["max_length"], 20)
  
      scheme = data_reader.batching_scheme(
          batch_size=20,
          max_length=15,
          min_length_bucket=8,
          length_bucket_step=1.1,
          drop_long_sequences=True,
      )
      self.assertEqual(scheme["max_length"], 15)
  
      scheme = data_reader.batching_scheme(
          batch_size=20,
          max_length=15,
          min_length_bucket=8,
          length_bucket_step=1.1,
          drop_long_sequences=False,
      )
      self.assertGreater(scheme["max_length"], 10000)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  import numpy
  from six.moves import range
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import data_reader
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 6 for calling the DataReaderTest obj's underlying member method code with example usage: obj.testBatchingSchemeMaxLength() without return types