code: def on_ui_settings(callback):
      """register a function to be called before UI settings are populated; add your settings
      by using shared.opts.add_option(shared.OptionInfo(...))"""
      add_callback(callback_map["callbacks_ui_settings"], callback)
  
imports: import inspect
  import os
  from collections import namedtuple
  from typing import Optional, Any
  from fastapi import FastAPI
  from gradio import Blocks
  from modules import errors, timer
label_desc: Use image node_id 31 for calling a global function with example usage: on_ui_settings(callback) without return types