def METHOD_NAME(package_name: str) -> StrictVersion:
    """Returns the version of a package name installed with pip."""
    # From https://stackoverflow.com/a/2073599
    import pkg_resources
    return StrictVersion(pkg_resources.require(package_name)[0].METHOD_NAME)