def METHOD_NAME(session: nox.Session, airflow) -> None:
    """Generate constraints file"""
    session.install("wheel")
    session.install(f"apache-airflow~={airflow}", ".[all]")
    # Log all the installed dependencies
    session.log("Installed Dependencies:")
    out = session.run("pip3", "list", "--format=freeze", external=True, silent=True)
    pathlib.Path(f"constraints-{session.python}-{airflow}.txt").write_text(out)
    print()
    print(out)