code: def exe_time(func):
      def newFunc(*args, **args2):
          t0 = time.time()
          back = func(*args, **args2)
          print(
              "{} cost {:.3f}s".format(func.__name__, time.time() - t0)
          )
          return back
  
      return newFunc
  
imports: import json
  import pathlib
  import time
  import os
  import glob
  import cv2
  import yaml
  from typing import Mapping
  import matplotlib.pyplot
  import numpy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
label_desc: Use image node_id 4 for calling a global function with example usage: exe_time(func) and returns: newFunc, back