docstr: Returns the authentication token for the session user. If there is no
  active session, then an UnauthenticatedException will be raised.
docstr_tok: ["Returns","the","authentication","token","for","the","session","user",".","If","there","is","no","active","session",",","then","an","UnauthenticatedException","will","be","raised","."]
code: def get_session_token(self, must: bool = True) -> str:
      """
      Returns the authentication token for the session user. If there is no
      active session, then an UnauthenticatedException will be raised.
      """
      if self.session is None:
          if must:
              raise api.errors.UnauthenticatedException(username="")
          else:
              return ""
      return self.session.token
  
imports: import argparse
  import contextlib
  import functools
  import getpass
  import hashlib
  import json
  import pathlib
  from typing import Any, Callable, Dict, Iterator, List, NamedTuple, Optional, Tuple, cast
  import filelock
  import determined
  from determined.common import api, constants, util
  from determined.common.api import bindings, certs
label_desc: Use image node_id 5 for calling the Authentication obj's underlying member method code with example usage: obj.get_session_token(must) and returns: self, str