code: def _update_cached_wrapper(wrapper, cached_func):
      for meth_name in (
          "cache_clear",
          "cache_parameters",
          "cache_info",
      ):
          if hasattr(cached_func, meth_name):
              setattr(
                  wrapper, meth_name, getattr(cached_func, meth_name)
              )
      return wrapper
  
imports: from __future__ import annotations
  import logging
  import os
  import warnings
  from functools import lru_cache, update_wrapper
  from typing import Callable, Iterable
  import yaml
  from yaml import UnsafeLoader
  import satpy
  from satpy import DataID, DataQuery
  from satpy._config import config_search_paths, get_entry_points_config_dirs, glob_config
  from satpy.dataset.dataid import minimal_default_keys_config
  from satpy.utils import recursive_dict_update
label_desc: Use image node_id 5 for calling a global function with example usage: _update_cached_wrapper(wrapper, cached_func) and returns: wrapper