code: def __init__(
      self, loop: asyncio.AbstractEventLoop, threaded: bool = True
  ):
      self.loop = loop
      self._threaded = threaded
  
      self._stopped = None
      self._thread = None
      self._thread_ident = None
  
file_path: mars/mars/lib/aio/isolation.py
imports: import asyncio
  import atexit
  import threading
  from typing import Dict, Optional
label_desc: Use image node_id 1 to create a new Isolation object  with example: obj = Isolation(loop, threaded)