docstr: Return a copy of this session with different max_retries.
docstr_tok: ["Return","a","copy","of","this","session","with","different","max_retries","."]
code: def with_retry(
      self, retry: Optional[urllib3.util.retry.Retry]
  ) -> "Session":
      """Return a copy of this session with different max_retries."""
  
      return type(self)(
          master=self._master,
          user=self._user,
          auth=self._auth,
          cert=self._cert,
          max_retries=retry,
      )
  
file_path: determined/harness/determined/common/api/_session.py
imports: from typing import Any, Dict, Optional
  import requests
  import urllib3
  from determined.common import util
  from determined.common.api import authentication, certs, request
label_desc: Use image node_id 8 for calling the Session obj's underlying member method code with example usage: obj.with_retry(retry) and returns: type