code: def get_and_verify_user(request, authtype):
      if (
          not request.headers
          or "Authorization" not in request.headers.keys()
      ):
          return None
  
      token = request.headers["Authorization"].split(" ")[-1]
      if not token or token == "null":
          return None
  
      authclass = get_auth_class(authtype)
      if not authclass:
          return None
  
      if request.json:
          refresh_token = request.json.get("refreshToken")
      else:
          refresh_token = None
  
      return authclass.verify_token(token, refresh_token)
  
imports: import os
  import getpass
  import time
  import json
  import shutil
  import atexit
  import tempfile
  import requests
  import re
  import uuid
  from builtins import input
  import google.auth.transport.requests
  import google.oauth2.id_token
  from studio.util.util import rand_string, check_for_kb_interrupt
  from studio import pyrebase
  from studio.util import logs
label_desc: Use image node_id 3 for calling a global function with example usage: get_and_verify_user(request, authtype) and returns: authclass, None, None, None