code: def get_session(self, token_path=None):
          
          # TODO: remove token_path in future versions
          if token_path is not None:
              warnings.warn('"token_path" param will be removed in future versions.'
                            ' Use a TokenBackend instead.', DeprecationWarning)
  
          # gets a fresh token from the store
          token = self.token_backend.get_token()
  
          if token:
              client_id, _ = self.auth
              session = OAuth2Session(client_id=client_id, token=token)
          else:
              raise RuntimeError(
                  'No auth token found. Authentication Flow needed')
  
          session.proxies = self.proxy
  
          if self.request_retries:
              retry = Retry(total=self.request_retries, read=self.request_retries,
                            connect=self.request_retries,
                            backoff_factor=RETRIES_BACKOFF_FACTOR,
                            status_forcelist=RETRIES_STATUS_LIST)
              adapter = HTTPAdapter(max_retries=retry)
              session.mount('http://', adapter)
              session.mount('https://', adapter)
  
          return session
docs: Create a requests Session object
  
          :param Path token_path: (Only oauth) full path to where the token
           should be load from
          :return: A ready to use requests session
          :rtype: OAuth2Session