code: def _new_session(retry_timeout_config):
          
          retry = requests.packages.urllib3.Retry(
              total=None,
              connect=retry_timeout_config.connect_retries,
              read=retry_timeout_config.read_retries,
              method_whitelist=retry_timeout_config.method_whitelist,
              redirect=retry_timeout_config.max_redirects)
          session = requests.Session()
          session.mount('https://',
                        requests.adapters.HTTPAdapter(max_retries=retry))
          session.mount('http://',
                        requests.adapters.HTTPAdapter(max_retries=retry))
          return session
docs: Return a new `requests.Session` object.