code: def get_auth(config, blocking=True, verbose=logs.DEBUG):
      global _auth_singleton
      if _auth_singleton is None:
          if isinstance(config, dict):
              auth_class = get_auth_class(config["type"])
          else:
              auth_class = get_auth_class(config)
  
          if auth_class:
              _auth_singleton = auth_class(
                  config, blocking=blocking, verbose=verbose
              )
          else:
              return None
      return _auth_singleton
  
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 2 for calling a global function with example usage: get_auth(config, blocking, verbose) and returns: _auth_singleton, None