code: def retry(conf=DEFAULT_CONF, **kwargs):
      """
      Retrying decorator.
  
      :param conf:        configuration
      """
  
      if kwargs:
          conf = conf.clone(**kwargs)
  
      def decorator(f):
          @functools.wraps(f)
          def wrapped(*f_args, **f_kwargs):
              return _retry(
                  conf, functools.partial(f, *f_args, **f_kwargs)
              )
  
          return wrapped
  
      return decorator
  
imports: import copy
  import datetime
  import functools
  import itertools
  import logging
  import random
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: retry(conf) and returns: decorator, wrapped, _retry