code: def get_max_retries_config() -> urllib3.util.retry.Retry:
      # Allow overriding retry settings when necessary.
      # `DET_RETRY_CONFIG` env variable can contain `urllib3` `Retry` parameters,
      # encoded as JSON.
      # For example:
      #  - disable retries: {"total":0}
      #  - shorten the wait times {"total":10,"backoff_factor":0.5,"method_whitelist":false}
  
      config_data = os.environ.get("DET_RETRY_CONFIG")
      if config_data is not None:
          config = json.loads(config_data)
          return urllib3.util.retry.Retry(**config)
  
      # Default retry is different with different versions of urllib3, which mypy doesn't understand.
      @no_type_check
      def make_default_retry():
          try:
              return urllib3.util.retry.Retry(
                  total=20,
                  backoff_factor=0.5,
                  allowed_methods=False,
              )
          except TypeError:  # Support urllib3 prior to 1.26
              return urllib3.util.retry.Retry(
                  total=20,
                  backoff_factor=0.5,
                  method_whitelist=False,
              )
  
      return make_default_retry()
  
imports: import datetime
  import functools
  import io
  import json
  import os
  import pathlib
  import platform
  import random
  import re
  import sys
  import time
  import warnings
  from typing import IO, Any, Callable, Dict, Iterator, Optional, Sequence, Tuple, TypeVar, Union, cast, no_type_check, overload
  import urllib3
  from determined.common import yaml
label_desc: Use image node_id 16 for calling a global function with example usage: get_max_retries_config() and returns: make_default_retry, urllib3, urllib3, urllib3