class_docstr: An api-compatible Authentication object that is basically exactly a UserTokenPair.
  
  TODO(MLG-215): delete Authentication class and write a function that returns a UsernameTokenPair
  in its place, and let do_request() take UsernameTokenPair as input.
class_docstr_tok: ["An","api-compatible","Authentication","object","that","is","basically","exactly","a","UserTokenPair",".","TODO","(","MLG-215",")",":","delete","Authentication","class","and","write","a","function","that","returns","a","UsernameTokenPair","in","its","place",",","and","let","do_request","(",")","take","UsernameTokenPair","as","input","."]
code: def get_session_user(self) -> str:
      return self.session_user
  
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 2 for calling the LogoutAuthentication obj's underlying member method code with example usage: obj.get_session_user() and returns: self