code: def counter(func):
      """count func succ rate"""
  
      def inner_wrapper(*args, **kwargs):
          """inner wrapper"""
          result, is_succ = func(*args, **kwargs)
          inner_wrapper.total += 1
          if is_succ:
              inner_wrapper.succ += 1
          else:
              inner_wrapper.fail += 1
          return result, is_succ
  
      inner_wrapper.name = func.__name__
      inner_wrapper.total = 0
      inner_wrapper.succ = 0
      inner_wrapper.fail = 0
      return inner_wrapper
  
imports: import time
  from datetime import datetime
  import functools
  from utils.util_log import test_log
label_desc: Use image node_id 2 for calling a global function with example usage: counter(func) and returns: inner_wrapper, result,  is_succ