code: def _attach_session(self, session: SessionType):
      if session not in self._executed_sessions:
          _cleaner.register(self, session)
          self._executed_sessions.append(session)
  
imports: import asyncio
  import atexit
  import concurrent.futures
  import queue
  import threading
  from typing import List
  from weakref import WeakKeyDictionary, ref
  from ...lib.aio import get_isolation
  from ...typing import SessionType, TileableType
  from ..mode import enter_mode
label_desc: Use image node_id 7 for calling the _ExecutableMixin obj's underlying member method code with example usage: obj._attach_session(session) without return types