code: def validate_output_path(output_path: str) -> None:
      correct_type = type(output_path) == str
      dir_exists = pathmgr.exists(os.path.dirname(output_path))
      assert (
          correct_type and dir_exists
      ), f"Output path invalid: {output_path}"
  
file_path: AugLy/augly/utils/asserts.py
imports: import os
  from typing import Tuple
  import magic
  from augly.utils.io import pathmgr
label_desc: Use image node_id 9 for calling a global function with example usage: validate_output_path(output_path) without return types