code: def request_user_info(access_token: str = None) -> dict:
      """request user info from cloud
  
      Args:
          access_token (str, optional): token that used to get user data
  
      Returns:
          dict: user data
      """
      if access_token is None:
          access_token = get_access_token()
      if access_token is None:
          raise KeyError()
  
      auth_server = Config()["auth"]["oauth"]["server_host"]
  
      response = requests.get(
          f"https://{auth_server}/auth/userinfo",
          headers={"Authorization": f"Bearer {access_token}"},
          timeout=5,
      )
      if response.status_code != 200:
          raise Exception(
              f"Wrong response: {response.status_code}, {response.text}"
          )
  
      return response.json()
  
file_path: mindsdb/mindsdb/api/http/namespaces/auth.py
imports: import base64
  import secrets
  import time
  import urllib
  import requests
  from flask import redirect, request, session, url_for
  from flask_restx import Resource
  from mindsdb.api.http.namespaces.configs.auth import ns_conf
  from mindsdb.utilities.config import Config
  from mindsdb.utilities import log
label_desc: Use image node_id 2 for calling a global function with example usage: request_user_info(access_token) and returns: response