code: def new_isolation(
      name: str = DEFAULT_ISOLATION,
      loop: asyncio.AbstractEventLoop = None,
      threaded: bool = True,
  ) -> Isolation:
      if name in _name_to_isolation:
          return _name_to_isolation[name]
  
      if loop is None:
          loop = asyncio.new_event_loop()
  
      isolation = Isolation(loop, threaded=threaded)
      isolation.start()
      _name_to_isolation[name] = isolation
      return isolation
  
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 for calling a global function with example usage: new_isolation(name, loop, threaded) and returns: isolation, _name_to_isolation