def METHOD_NAME(session: nox.Session, extras):
    _, extras = extras
    pypi_deps = ",".join(extras["include"])
    pytest_options = " and ".join(extras["include"])
    pytest_options = " and not ".join([pytest_options, *extras.get("exclude", [])])
    pytest_args = ["-k", pytest_options]
    env = {
        "AIRFLOW_HOME": "~/airflow-latest-python-latest",
        "AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES": "airflow\\.* astro\\.*",
    }
    session.install("-e", f".[{pypi_deps}]")
    session.install("-e", ".[tests]")
    # Log all the installed dependencies
    session.log("Installed Dependencies:")
    session.run("pip3", "freeze")
    session.run("airflow", "db", "init", env=env)
    # Since pytest is not installed in the nox session directly, we need to set `external=true`.
    session.run(
        "pytest",
        "tests_integration/test_example_dags.py",
        *pytest_args,
        *session.posargs,
        env=env,
        external=True,
    )