code: def chdir_tmpdir(tmp_path):
      original_path = os.getcwd()
      os.chdir(tmp_path)
      yield
      os.chdir(original_path)
  
file_path: ray/python/ray/train/tests/test_windows.py
imports: import os
  import pytest
  import ray
  from ray import train, tune
  from ray.train.data_parallel_trainer import DataParallelTrainer
  from ray.train.tests.util import create_dict_checkpoint
label_desc: Use image node_id 2 for calling a global function with example usage: chdir_tmpdir(tmp_path) without return types