code: def change_dir(path):
      old = os.getcwd()
      try:
          os.chdir(path)
          yield path
      finally:
          os.chdir(old)
  
file_path: catboost/library/python/testing/yatest_common/yatest/common/path.py
imports: import errno
  import os
  import shutil
  import contextlib
  import library.python.fs
label_desc: Use image node_id 2 for calling a global function with example usage: change_dir(path) without return types