code: def set_funcion_state(fun, state):
      fun.__globals__.update(state["global_refs"])
      fun.__defaults__ = state["defaults"]
      fun.__kwdefaults__ = state["kwdefaults"]
  
file_path: DALI/dali/python/nvidia/dali/reducers.py
imports: import inspect
  import pickle
  import sys
  import types
  import marshal
  import importlib
label_desc: Use image node_id 3 for calling a global function with example usage: set_funcion_state(fun, state) without return types