def METHOD_NAME(config_path: Path, dialect: t.Optional[str], template: ProjectTemplate) -> None:
    project_config = _gen_config(dialect, template)
    _write_file(
        config_path,
        project_config,
    )