code: def decode_permalink_id(key: str, salt: str) -> int:
      obj = hashids.Hashids(salt, min_length=HASHIDS_MIN_LENGTH)
      ids = obj.decode(key)
      if len(ids) == 1:
          return ids[0]
      raise KeyValueParseKeyError(_("Invalid permalink key"))
  
file_path: superset/superset/key_value/utils.py
imports: from __future__ import annotations
  from hashlib import md5
  from secrets import token_urlsafe
  from typing import Any
  from uuid import UUID, uuid3
  import hashids
  from flask_babel import gettext
  from superset.key_value.exceptions import KeyValueParseKeyError
  from superset.key_value.types import KeyValueFilter, KeyValueResource
  from superset.utils.core import json_dumps_w_dates
label_desc: Use image node_id 4 for calling a global function with example usage: decode_permalink_id(key, salt) and returns: ids