code: def wrap_call(
      func, filename, funcname, *args, default=None, **kwargs
  ):
      try:
          res = func(*args, **kwargs)
          return res
      except Exception as e:
          errors.display(e, f"calling {filename}/{funcname}")
  
      return default
  
imports: import dataclasses
  import os
  import gradio
  from modules import errors, shared
label_desc: Use image node_id 1 for calling a global function with example usage: wrap_call(func, filename, funcname) and returns: default, res