code: def skip_local_gc():
      with mock.patch.dict(
          os.environ,
          {
              "RAY_RUNTIME_ENV_SKIP_LOCAL_GC": "1",
          },
      ):
          print("RAY_RUNTIME_ENV_SKIP_LOCAL_GC enabled.")
          yield
  
file_path: ray/python/ray/tests/test_runtime_env_conda_and_pip_3.py
imports: import os
  import pytest
  import sys
  import time
  from ray._private.test_utils import wait_for_condition, check_local_files_gced, generate_runtime_env_dict
  import ray
  from unittest import mock
label_desc: Use image node_id 1 for calling a global function with example usage: skip_local_gc() without return types