code: def init_cache(app):
      webserver_caching_hash_method = conf.get(
          section="webserver", key="CACHING_HASH_METHOD", fallback="md5"
      ).casefold()
      cache_config = {
          "CACHE_TYPE": "flask_caching.backends.filesystem",
          "CACHE_DIR": gettempdir(),
      }
  
      mapped_hash_method = HASH_METHOD_MAPPING.get(
          webserver_caching_hash_method
      )
  
      if mapped_hash_method is None:
          raise AirflowConfigException(
              f"Unsupported webserver caching hash method: `{webserver_caching_hash_method}`."
          )
  
      cache_config["CACHE_OPTIONS"] = {
          "hash_method": mapped_hash_method
      }
  
      Cache(app=app, config=cache_config)
  
imports: from __future__ import annotations
  import hashlib
  from tempfile import gettempdir
  from flask_caching import Cache
  from airflow.configuration import conf
  from airflow.exceptions import AirflowConfigException
label_desc: Use image node_id 1 for calling a global function with example usage: init_cache(app) without return types