code: def get_token(id: int):
      if get_user_by_id(id) is None:
          abort(404)
      return {"token": f"Bearer {get_user_by_id(id).get_token()}"}
  
file_path: apiflask/examples/auth/token_auth/app.py
imports: import typing
  from flask import current_app
  from apiflask import APIFlask, HTTPTokenAuth, Schema, abort
  from apiflask.fields import String
  from authlib.jose import jwt, JoseError
label_desc: Use image node_id 3 for calling a global function with example usage: get_token(id) and returns: dict