code: def get_working_directory(base_dir: Union[str, Path]) -> Path:
      if not isinstance(base_dir, Path):
          base_dir = Path(base_dir)
      work_dir = base_dir / "ext" / "notifications"
      work_dir.mkdir(parents=True, exist_ok=True)
      return work_dir
  
file_path: aim/aim/ext/notifier/utils.py
imports: import os
  import shutil
  from functools import lru_cache
  from pathlib import Path
  from typing import Union
label_desc: Use image node_id 1 for calling a global function with example usage: get_working_directory(base_dir) and returns: work_dir