code: def insert_test_dir_in_pythonpath():
      with mock.patch.dict(
          os.environ,
          {
              "PYTHONPATH": TEST_IMPORT_DIR
              + os.pathsep
              + os.environ.get("PYTHONPATH", "")
          },
      ):
          yield
  
imports: import os
  import shutil
  import sys
  import tempfile
  import time
  from importlib import import_module
  from pathlib import Path
  from unittest import mock
  import pytest
  import ray
  from ray._private import gcs_utils
  from ray._private.runtime_env.context import RuntimeEnvContext
  from ray._private.runtime_env.packaging import get_uri_for_directory, upload_package_if_needed
  from ray._private.runtime_env.working_dir import WorkingDirPlugin, set_pythonpath_in_context
  from ray._private.utils import get_directory_size_bytes
label_desc: Use image node_id 1 for calling a global function with example usage: insert_test_dir_in_pythonpath() without return types