code: def run_intermediate_hooks(name, val):
      global INTERMEDIATE_HOOKS
      hooks = INTERMEDIATE_HOOKS
      INTERMEDIATE_HOOKS = []
      try:
          for hook in hooks:
              hook(name, val)
      finally:
          INTERMEDIATE_HOOKS = hooks
  
label_desc: Use image node_id 2 for calling a global function with example usage: run_intermediate_hooks(name, val) without return types