code: def retry(times):
      """
      This decorator prints the execution time for the decorated function.
      """
  
      def wrapper(func):
          def newfn(*args, **kwargs):
              attempt = 0
              while attempt < times:
                  try:
                      result = func(*args, **kwargs)
                      if result:
                          break
                      else:
                          raise Exception("Result false")
                  except Exception as e:
                      logger.info(str(e))
                      time.sleep(3)
                      attempt += 1
              return result
  
          return newfn
  
      return wrapper
  
imports: import time
  import logging
  import string
  import random
  import requests
  import json
  import os
  from yaml.representer import SafeRepresenter
  import yaml
  import tableprint
  import config
label_desc: Use image node_id 3 for calling a global function with example usage: retry(times) and returns: wrapper, newfn, result