code: def new_test_session(
      address: str = None,
      session_id: str = None,
      backend: str = MARS_CI_BACKEND,
      default: bool = False,
      new: bool = True,
      **kwargs,
  ):
      isolation = ensure_isolation_created(kwargs)
      if address is None:
          address = "127.0.0.1"
          if "init_local" not in kwargs:
              kwargs["init_local"] = True
      if "web" not in kwargs:
          kwargs["web"] = False
      coro = _new_test_session(
          address,
          session_id=session_id,
          backend=backend,
          default=default,
          new=new,
          **kwargs,
      )
      return _ensure_sync(
          asyncio.run_coroutine_threadsafe(coro, isolation.loop).result(
              120
          )
      )
  
file_path: mars/mars/deploy/oscar/tests/session.py
imports: import asyncio
  import inspect
  import os
  import uuid
  from ....conftest import MARS_CI_BACKEND
  from ....core import OBJECT_TYPE
  from ....deploy.oscar.local import LocalCluster, LocalClient
  from ....session import AbstractSession, AsyncSession, ensure_isolation_created, _ensure_sync
  from ....tests.core import _check_args, ObjectCheckMixin
  from ..session import _IsolatedSession
label_desc: Use image node_id 1 for calling a global function with example usage: new_test_session(address, session_id, backend, default, new) and returns: _ensure_sync