code: def __contains__(self, item: Union[T, str]) -> bool:
      self._create_cache()
      if isinstance(item, str):
          match = next((i for i in self._cache if i.name == item), None)
          return match is not None
      elif isinstance(item, self._it_cls):
          match = next(
              (i for i in self._cache if i.id == item._model.id), None
          )
          return match is not None
      return False
  
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 6 for calling the ModelMappedCollection obj's underlying member method code with example usage: obj.__contains__(item) and returns: False, unknown, unknown