def METHOD_NAME(session: nox.Session) -> None:
    """Build release artifacts."""
    session.install("build")
    # TODO: Automate version bumping, Git tagging, and more?
    dist = pathlib.Path("dist")
    if dist.exists() and next(dist.iterdir(), None) is not None:
        session.error(
            "There are files in dist/. Remove them and try again. "
            "You can use `git clean -fxdi -- dist` command to do this."
        )
    dist.mkdir(exist_ok=True)
    session.run("python", "-m", "build", *session.posargs)