def METHOD_NAME(module_name: str) -> ModuleType:
    # Module name can be uppercase in vendor.txt for some reason...
    module_name = module_name.lower().replace("-", "_")
    # PATCH: setuptools is actually only pkg_resources.
    if module_name == "setuptools":
        module_name = "pkg_resources"
    __import__(f"pipenv.patched.pip._vendor.{module_name}", globals(), locals(), level=0)
    return getattr(pipenv.patched.pip._vendor, module_name)