code: def log_in_user(parsed_args: Namespace) -> None:
      if parsed_args.username is None:
          username = input("Username: ")
      else:
          username = parsed_args.username
  
      message = "Password for user '{}': ".format(username)
      password = getpass.getpass(message)
  
      token_store = authentication.TokenStore(parsed_args.master)
      token = authentication.do_login(
          parsed_args.master, username, password, certs.cli_cert
      )
      token_store.set_token(username, token)
      token_store.set_active(username)
  
imports: import getpass
  from argparse import Namespace
  from collections import namedtuple
  from typing import Any, List
  from determined.cli import errors, login_sdk_client, render, setup_session
  from determined.common import api
  from determined.common.api import authentication, bindings, certs
  from determined.common.declarative_argparse import Arg, Cmd, string_to_bool
  from determined.experimental import client
  from determined.experimental.client import Determined
label_desc: Use image node_id 4 for calling a global function with example usage: log_in_user(parsed_args) without return types