code: def setup(_new_test_session):
      _new_test_session.as_default()
      yield _new_test_session
      assert not (is_build_mode() or is_kernel_mode())
  
imports: import concurrent.futures
  import os
  import subprocess
  import psutil
  import pytest
  from mars.config import option_context
  from mars.core.mode import is_kernel_mode, is_build_mode
  from mars.lib.aio.lru import clear_all_alru_caches
  from mars.oscar.backends.router import Router
  from mars.oscar.backends.ray.communication import RayServer
  from mars.utils import lazy_import
label_desc: Use image node_id 15 for calling a global function with example usage: setup(_new_test_session) without return types