code: def default_retry(
      max_retries: int = MAX_RETRIES,
  ) -> urllib3.util.retry.Retry:
      retry = urllib3.util.retry.Retry(
          total=max_retries,
          backoff_factor=0.5,  # {backoff factor} * (2 ** ({number of total retries} - 1))
          status_forcelist=RETRY_STATUSES,
      )
      return retry
  
file_path: determined/harness/determined/common/api/_util.py
imports: import enum
  from typing import Callable, Iterator, Optional, Tuple, TypeVar, Union
  import urllib3
  from determined.common import api, util
  from determined.common.api import bindings
label_desc: Use image node_id 2 for calling a global function with example usage: default_retry(max_retries) and returns: retry