def METHOD_NAME(plan: Plan, path: Path):
    """Converts a Plan to Renku workflow file format."""
    # NOTE: There is no root plan and we need to create one; its name can't be the same as step's (i.e. plan's) name
    data = {
        "name": f"{plan.name}-workflow-file",
        "steps": [{plan.name: RenkuWorkflowFileExporter.convert_step(step=plan)}],
    }
    write_yaml(path=path, data=data)