def METHOD_NAME(file_name, requirements: List[Requirement]):
    """Write requirements file."""
    Path(file_name).write_text(
        "\n".join(str(req) for req in requirements), encoding="utf-8"
    )