code: def wrap_queued_call(func):
      def f(*args, **kwargs):
          with queue_lock:
              res = func(*args, **kwargs)
  
          return res
  
      return f
  
imports: from functools import wraps
  import html
  import time
  from modules import shared, progress, errors, devices, fifo_lock
label_desc: Use image node_id 1 for calling a global function with example usage: wrap_queued_call(func) and returns: f, res