class_docstr: Determined gives access to Determined API objects.
  
  Arguments:
      master (string, optional): The URL of the Determined master. If
          this argument is not specified, the environment variables ``DET_MASTER`` and
          ``DET_MASTER_ADDR`` will be checked for the master URL in that order.
      user (string, optional): The Determined username used for
          authentication. (default: ``determined``)
code: def logout(self) -> None:
      auth = self._session._auth
      # auth should only be None in the special login Session, which must not be used in a
      # Determined object.
      assert auth, "Determined.logout() found an unauthorized Session"
  
      user = auth.get_session_user()
      # get_session_user() is allowed to return an empty string, which seems dumb, but in that
      # case we do not want to trigger the authentication.logout default username lookup logic.
      assert user, "Determined.logout() couldn't find a valid username"
  
      authentication.logout(
          self._session._master, user, self._session._cert
      )
  
imports: import itertools
  import logging
  import pathlib
  import warnings
  from typing import Any, Dict, Iterable, List, Optional, Sequence, Union
  import determined
  from determined.common import api, context, util
  from determined.common.api import authentication, bindings, certs, errors
  from determined.common.experimental import checkpoint, experiment, metrics, model, oauth2_scim_client, trial, user, workspace
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 8 for calling the Determined obj's underlying member method code with example usage: obj.logout() without return types