code: def test_predict_gen():
      class GeneratorTestModel(Model):
          def _predict_batch(self, items):
              # returns the size of the batch
              return [
                  (item, position_in_batch, len(items))
                  for (position_in_batch, item) in enumerate(items)
              ]
  
      m = GeneratorTestModel()
  
      _do_gen_test(m, 16, 66)
      _do_gen_test(m, 10, 8)
      _do_gen_test(m, 100, 5)
  
file_path: modelkit/tests/test_batching.py
imports: import asyncio
  import pytest
  from modelkit.core.model import AsyncModel, Model
label_desc: Use image node_id 7 for calling a global function with example usage: test_predict_gen() and returns: unknown