code: def test_generate_batches_nonrandom(self):
      data = [[i] * i for i in range(10, 0, -1)]
      bucket_generator = BucketGenerator(
          lambda e: len(e),
          batch_size=2,
          buffer_size_batches=100,
          shuffle=False,
      )
      buckets_gen = bucket_generator(data)
      result = [el for el in buckets_gen]
      expected = [[i] * i for i in range(1, 11)]
      self.assertEqual(expected, result)
  
imports: import itertools
  import random
  import unittest
  from headliner.preprocessing.bucket_generator import BucketGenerator
label_desc: Use image node_id 1 for calling the TestBucketGenerator obj's underlying member method code with example usage: obj.test_generate_batches_nonrandom() without return types