code: def work_directory(path: str):
      curr = os.getcwd()
      try:
          os.chdir(path)
          yield
      finally:
          os.chdir(curr)
  
imports: import os
  import shutil
  import tarfile
  import pathlib
  import re
  import uuid
  from contextlib import contextmanager
  from typing import Union, Any, Tuple, Optional, Callable
  from aim.sdk.configs import get_aim_repo_name
  from aim.storage.object import CustomObject
  from logging import getLogger
label_desc: Use image node_id 6 for calling a global function with example usage: work_directory(path) without return types