def METHOD_NAME(self, version):
    vrec = [x for x in self.version_list if x["version"] == version.dotted.string]
    if vrec:
        fname = vrec[0]["basename"].format(version.dotted, version.underscored)
        sha256 = vrec[0]["sha256"]
        myurl = self.url.format(sha256, fname)
        return myurl
    else:
        sys.exit(
            "ERROR: cannot generate URL for version {0};"
            "version/checksum not found in version_list".format(version)
        )