def METHOD_NAME(dist_name: str, version: str) -> str:
    # https://packaging.python.org/en/latest/specifications/binary-distribution-format/#escaping-and-unicode
    # https://peps.python.org/pep-0440/
    safe_name = pkg_resources.safe_name(dist_name).replace("-", "_")
    safe_version = pkg_resources.safe_version(version)
    return f"{safe_name}-{safe_version}"