code: def run_if_cuda(func):
      def wrapped_func(*args, **kwargs):
          if torch.cuda.is_available():
              return func(*args, **kwargs)
          else:
              return
  
      return wrapped_func
  
label_desc: Use image node_id 1 for calling a global function with example usage: run_if_cuda(func) and returns: wrapped_func, func