code: def test_batch_lists(self):
      list_of_lists = (list(range(i)) for i in range(10))
      expected_batched = [
          [[], [0], [0, 1]],
          [[0, 1, 2], [0, 1, 2, 3], [0, 1, 2, 3, 4]],
          [
              [0, 1, 2, 3, 4, 5],
              [0, 1, 2, 3, 4, 5, 6],
              [0, 1, 2, 3, 4, 5, 6, 7],
          ],
          [[0, 1, 2, 3, 4, 5, 6, 7, 8]],
      ]
      self.assertEqual(
          expected_batched,
          list(get_batches(list_of_lists, batch_size=3)),
      )
  
imports: import unittest
  from neptune.internal.utils.iteration import get_batches
label_desc: Use image node_id 2 for calling the TestIterationUtils obj's underlying member method code with example usage: obj.test_batch_lists() without return types