code: def change_test_dir(request, monkeypatch):
      monkeypatch.chdir(os.path.dirname(__file__))
      yield
  
file_path: ray/python/ray/tests/test_mpi.py
imports: import pytest
  import ray
  import sys
  import os
  import numpy
  from ray.runtime_env import mpi_init
label_desc: Use image node_id 1 for calling a global function with example usage: change_test_dir(request, monkeypatch) without return types