code: def tmp_chdir(new_dir):
      """
      This temporarily changes directories when running the tests.
      Useful for when testing wheels in the pyproj directory
      when pyproj has not been build and prevents conflicts.
      """
      curdir = os.getcwd()
      try:
          os.chdir(new_dir)
          yield
      finally:
          os.chdir(curdir)
  
file_path: pyproj/test/conftest.py
imports: import os
  import pickle
  from contextlib import contextmanager
  from pathlib import Path
  import numpy
  import pytest
  from packaging import version
  import pyproj
  from pyproj.datadir import get_data_dir, get_user_data_dir, set_data_dir
label_desc: Use image node_id 4 for calling a global function with example usage: tmp_chdir(new_dir) without return types