code: def _chdir(path):
      old_cwd = os.getcwd()
      try:
          os.chdir(path)
          logging.info("cwd changed from %s to %s", old_cwd, path)
          yield
      finally:
          os.chdir(old_cwd)
          logging.info("cwd changed back to %s", old_cwd)
  
file_path: tfx/tfx/orchestration/test_utils.py
imports: import contextlib
  import os
  import random
  import string
  import subprocess
  import time
  from absl import logging
  import docker
label_desc: Use image node_id 3 for calling a global function with example usage: _chdir(path) without return types