def METHOD_NAME(self, checksum, desc):
    url = desc
    if not isinstance(url, dict):
        url = {"url": url}
    # check if url needs rhsm secrets
    if url.get("secrets", {}).get("name") == "org.osbuild.rhsm":
        # rhsm secrets only need to be retrieved once and can then be reused
        if self.subscriptions is None:
            self.subscriptions = Subscriptions.from_host_system()
        url["secrets"] = self.subscriptions.get_secrets(url.get("url"))
    return checksum, url