code: def run(self):
      token = get_token()
      if token is None:
          print("Not logged in")
          exit()
      try:
          info = self._api.whoami(token)
          print(info["name"])
          orgs = [org["name"] for org in info["orgs"]]
          if orgs:
              print(ANSI.bold("orgs: "), ",".join(orgs))
  
          if ENDPOINT != "https://huggingface.co":
              print(
                  f"Authenticated through private endpoint: {ENDPOINT}"
              )
      except HTTPError as e:
          print(e)
          print(ANSI.red(e.response.text))
          exit(1)
  
imports: import subprocess
  from argparse import _SubParsersAction
  from requests.exceptions import HTTPError
  from huggingface_hub.commands import BaseHuggingfaceCLICommand
  from huggingface_hub.constants import ENDPOINT, REPO_TYPES, REPO_TYPES_URL_PREFIXES, SPACES_SDK_TYPES
  from huggingface_hub.hf_api import HfApi
  from .._login import NOTEBOOK_LOGIN_PASSWORD_HTML, NOTEBOOK_LOGIN_TOKEN_HTML_END, NOTEBOOK_LOGIN_TOKEN_HTML_START, login, logout, notebook_login
  from ..utils import get_token
  from ._cli_utils import ANSI
label_desc: Use image node_id 1 for calling the WhoamiCommand obj's underlying member method code with example usage: obj.run() without return types