code: def authenticate(username, password):
      auth_settings = global_state.get_auth_settings()
      if (
          username == auth_settings["username"]
          and password == auth_settings["password"]
      ):
          return True
      return False
  
imports: from flask import redirect, render_template, request, session, url_for
  from functools import wraps
  import dtale.global_state
label_desc: Use image node_id 2 for calling a global function with example usage: authenticate(username, password) and returns: False, True