code: def enable_lru_cache_pickling_once():
      """Enables pickling for functools.lru_cache."""
      lru_cache_type = type(functools.lru_cache()(lambda: None))
  
      def new_lru_cache(func, cache_kwargs):
          return functools.lru_cache(**cache_kwargs)(func)
  
      def _pickle_lru_cache(obj):
          params = {}
          if hasattr(obj, "cache_parameters"):
              params = obj.cache_parameters()
          return new_lru_cache, (obj.__wrapped__, params)
  
      copyreg.pickle(lru_cache_type, _pickle_lru_cache)
  
file_path: launchpad/launchpad/launch/serialization.py
imports: import copyreg
  import functools
  from absl import flags
  import cloudpickle
  from launchpad import flags
label_desc: Use image node_id 1 for calling a global function with example usage: enable_lru_cache_pickling_once() and returns: functools, new_lru_cache,  obj,  params