code: def generate_cache_key(
      values_dict: dict[str, Any], key_prefix: str = ""
  ) -> str:
      hash_str = md5_sha_from_dict(
          values_dict, default=json_int_dttm_ser
      )
      return f"{key_prefix}{hash_str}"
  
file_path: superset/superset/utils/cache.py
imports: from __future__ import annotations
  import inspect
  import logging
  from datetime import datetime, timedelta
  from functools import wraps
  from typing import Any, Callable, TYPE_CHECKING
  from flask import current_app, request
  from flask_caching import Cache
  from flask_caching.backends import NullCache
  from werkzeug.wrappers import Response
  from superset import db
  from superset.extensions import cache_manager
  from superset.models.cache import CacheKey
  from superset.utils.core import json_int_dttm_ser
  from superset.utils.hashing import md5_sha_from_dict
label_desc: Use image node_id 1 for calling a global function with example usage: generate_cache_key(values_dict, key_prefix) and returns: key_prefix, hash_str