class_docstr: Specifies the number of times the task corresponding
  to a step needs to be retried.
  
  This decorator is useful for handling transient errors, such as networking issues.
  If your task contains operations that can't be retried safely, e.g. database updates,
  it is advisable to annotate it with `@retry(times=0)`.
  
  This can be used in conjunction with the `@catch` decorator. The `@catch`
  decorator will execute a no-op task after all retries have been exhausted,
  ensuring that the flow execution can continue.
  
  Parameters
  ----------
  times : int, default: 3
      Number of times to retry this task.
  minutes_between_retries : int, default: 2
      Number of minutes between retries.
class_docstr_tok: ["Specifies","the","number","of","times","the","task","corresponding","to","a","step","needs","to","be","retried",".","This","decorator","is","useful","for","handling","transient","errors",",","such","as","networking","issues",".","If","your","task","contains","operations","that","ca","n't","be","retried","safely",",","e.g",".","database","updates",",","it","is","advisable","to","annotate","it","with","`","@","retry","(","times=0",")","`",".","This","can","be","used","in","conjunction","with","the","`","@","catch","`","decorator",".","The","`","@","catch","`","decorator","will","execute","a","no-op","task","after","all","retries","have","been","exhausted",",","ensuring","that","the","flow","execution","can","continue",".","Parameters","--","--","--","--","--","times",":","int",",","default",":","3","Number","of","times","to","retry","this","task",".","minutes_between_retries",":","int",",","default",":","2","Number","of","minutes","between","retries","."]
code: def step_task_retry_count(self):
      return int(self.attributes["times"]), 0
  
imports: from metaflow.decorators import StepDecorator
  from metaflow.exception import MetaflowException
  from metaflow.metaflow_config import MAX_ATTEMPTS
label_desc: Use image node_id 2 for calling the RetryDecorator obj's underlying member method code with example usage: obj.step_task_retry_count() and returns: int,  int