code: def __next__(self) -> T:
      if self._idx >= len(self._cache):
          raise StopIteration
      ret = self._it_cls.from_model(
          self._cache[self._idx], self.session
      )
      self._idx += 1
      return ret
  
file_path: aim/aim/storage/structured/sql_engine/utils.py
imports: from abc import ABCMeta
  from typing import Iterator, Collection, TypeVar, Union, Callable
  from sqlalchemy import text
label_desc: Use image node_id 4 for calling the ModelMappedCollection obj's underlying member method code with example usage: obj.__next__() and returns: ret