code: def report_snapshot(fn):
      @functools.wraps(fn)
      def wrapper(*args, **kwargs):
          snapshot = TIMER.snapshot()
          result = fn(*args, **kwargs)
          snapshot.report()
          return result
  
      return wrapper
  
imports: import collections
  import functools
  import timeit
  import traceback
  import weakref
  from json import dumps
  from typing import List
  import numpy
  from .ascii_table import ascii_table
label_desc: Use image node_id 2 for calling a global function with example usage: report_snapshot(fn) and returns: wrapper, result