def METHOD_NAME():
    if output:
        path = output / workflow.name if output.is_dir() else output
    else:
        path = Path(tempfile.mkdtemp()) / workflow.name
    absolute_path = Path(get_absolute_path(path))
    if absolute_path.exists():
        communication.confirm(f"Output file '{path}' exists. Overwrite it?", abort=True, warning=True)
    return absolute_path