class_docstr: Retry a specific number of times after a failure
docstr: Initialize a `Retry` object with a `Backoff` object
  that retries a maximum of `retries` times.
  `retries` can be negative to retry forever.
  You can specify the types of supported errors which trigger
  a retry with the `supported_errors` parameter.
docstr_tok: ["Initialize","a","`","Retry","`","object","with","a","`","Backoff","`","object","that","retries","a","maximum","of","`","retries","`","times",".","`","retries","`","can","be","negative","to","retry","forever",".","You","can","specify","the","types","of","supported","errors","which","trigger","a","retry","with","the","`","supported_errors","`","parameter","."]
code: def __init__(
      self,
      backoff,
      retries,
      supported_errors=(ConnectionError, TimeoutError, socket.timeout),
  ):
      """
      Initialize a `Retry` object with a `Backoff` object
      that retries a maximum of `retries` times.
      `retries` can be negative to retry forever.
      You can specify the types of supported errors which trigger
      a retry with the `supported_errors` parameter.
      """
      self._backoff = backoff
      self._retries = retries
      self._supported_errors = supported_errors
  
imports: import socket
  from time import sleep
  from redis.exceptions import ConnectionError, TimeoutError
label_desc: Use image node_id 1 to create a new Retry object  with example: obj = Retry(backoff, retries, supported_errors)