code: def chdir(tmp_path: Path):
      tmp_path.mkdir(exist_ok=True)
      cwd = os.getcwd()
      os.chdir(tmp_path)
      yield
      os.chdir(cwd)
  
file_path: camphr/packages/camphr/tests/conftest.py
imports: import os
  from pathlib import Path
  import pytest
  import camphr.tokenizer.mecab
  from .utils import FIXTURE_DIR, TRF_TESTMODEL_PATH, check_juman, check_lang, check_mecab
label_desc: Use image node_id 8 for calling a global function with example usage: chdir(tmp_path) without return types