def METHOD_NAME(
    output_dir: str = None, name: str = None, rows: List[Dict] | Dict = None
) -> None:
    if isinstance(rows, dict):
        rows = [rows]
    with open(f"{output_dir}/{name}.csv", mode="w") as csvfile:
        writer = csv.DictWriter(csvfile, fieldnames=rows[0].keys())
        writer.writeheader()
        writer.writerows(rows)