code: def ray_gdb_start():
      # Setup environment and start ray
      _environ = os.environ.copy()
      for process_name in ["RAYLET", "PLASMA_STORE"]:
          os.environ["RAY_{}_GDB".format(process_name)] = "1"
          os.environ["RAY_{}_TMUX".format(process_name)] = "1"
  
      yield None
  
      # Restore original environment and stop ray
      os.environ.clear()
      os.environ.update(_environ)
      ray.shutdown()
  
file_path: ray/python/ray/tests/test_debug_tools.py
imports: import os
  import subprocess
  import sys
  import pytest
  from pathlib import Path
  import ray
  import ray._private.services
  import ray._private.ray_constants
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 1 for calling a global function with example usage: ray_gdb_start() without return types