from __future__ import annotations from pathlib import Path class BaseImageGen: def generate(self, prompt: dict[str, str], output_dir: str | Path) -> str: raise NotImplementedError