code: def _get_mocked_oauth_info() -> typing.Dict:
      token = HfFolder.get_token()
      if token is None:
          raise ValueError(
              "Your machine must be logged in to HF to debug a Gradio app locally. Please"
              " run `huggingface-cli login` or set `HF_TOKEN` as environment variable "
              "with one of your access token. You can generate a new token in your "
              "settings page (https://huggingface.co/settings/tokens)."
          )
  
      user = whoami()
      if user["type"] != "user":
          raise ValueError(
              "Your machine is not logged in with a personal account. Please use a "
              "personal access token. You can generate a new token in your settings page"
              " (https://huggingface.co/settings/tokens)."
          )
  
      return {
          "access_token": token,
          "token_type": "bearer",
          "expires_in": 3600,
          "id_token": "AAAAAAAAAAAAAAAAAAAAAAAAAA",
          "scope": "openid profile",
          "expires_at": 1691676444,
          "userinfo": {
              "sub": "11111111111111111111111",
              "name": user["fullname"],
              "preferred_username": user["name"],
              "profile": f"https://huggingface.co/{user['name']}",
              "picture": user["avatarUrl"],
              "website": "",
              "aud": "00000000-0000-0000-0000-000000000000",
              "auth_time": 1691672844,
              "nonce": "aaaaaaaaaaaaaaaaaaa",
              "iat": 1691672844,
              "exp": 1691676444,
              "iss": "https://huggingface.co",
          },
      }
  
file_path: gradio/gradio/oauth.py
imports: from __future__ import annotations
  import hashlib
  import os
  import typing
  import warnings
  from dataclasses import dataclass, field
  import fastapi
  from fastapi.responses import RedirectResponse
  from huggingface_hub import HfFolder, whoami
  from .utils import get_space
label_desc: Use image node_id 4 for calling a global function with example usage: _get_mocked_oauth_info() and returns: dict