code: def debug(f):
      """
      Use this method to decorate your function with DebugMode's functionality
  
      Example:
  
      @debug
      def test_foo(self):
          raise Exception("Bar")
  
      """
  
      @functools.wraps(f)
      def wrapper(*args, **kwargs):
          def func():
              return f(*args, **kwargs)
  
          return DebugMode.run(func)
  
      return wrapper
  
imports: from caffe2.proto import caffe2_pb2
  from google.protobuf.message import DecodeError, Message
  from google.protobuf import text_format
  import sys
  import collections
  import copy
  import functools
  import numpy
label_desc: Use image node_id 13 for calling a global function with example usage: debug(f) and returns: wrapper, DebugMode, f