code: def get_gradio_auth_creds():
      """
      Convert the gradio_auth and gradio_auth_path commandline arguments into
      an iterable of (username, password) tuples.
      """
      from modules.shared_cmd_options import cmd_opts
  
      def process_credential_line(s):
          s = s.strip()
          if not s:
              return None
          return tuple(s.split(":", 1))
  
      if cmd_opts.gradio_auth:
          for cred in cmd_opts.gradio_auth.split(","):
              cred = process_credential_line(cred)
              if cred:
                  yield cred
  
      if cmd_opts.gradio_auth_path:
          with open(
              cmd_opts.gradio_auth_path, "r", encoding="utf8"
          ) as file:
              for line in file.readlines():
                  for cred in line.strip().split(","):
                      cred = process_credential_line(cred)
                      if cred:
                          yield cred
  
file_path: stable-diffusion-webui/modules/initialize_util.py
imports: import json
  import os
  import signal
  import sys
  import re
  from modules.timer import startup_timer
label_desc: Use image node_id 6 for calling a global function with example usage: get_gradio_auth_creds() and returns: tuple, None