code: def configurator_options(func):
      """Decorator that adds config param keys to click dynamically."""
      for _, value in reversed(
          _config._config_options_template.items()
      ):
          parsed_parameter = _convert_config_option_to_click_option(
              value
          )
          if value.sensitive:
              # Display a warning if the user tries to set sensitive
              # options using the CLI and exit with non-zero code.
              click_option_kwargs = {
                  "expose_value": False,
                  "hidden": True,
                  "is_eager": True,
                  "callback": _make_sensitive_option_callback(value),
              }
          else:
              click_option_kwargs = {
                  "show_envvar": True,
                  "envvar": parsed_parameter["envvar"],
              }
          config_option = click.option(
              parsed_parameter["option"],
              parsed_parameter["param"],
              help=parsed_parameter["description"],
              type=parsed_parameter["type"],
              **click_option_kwargs,
          )
          func = config_option(func)
      return func
  
imports: import os
  import sys
  from typing import Any, Dict, List, Optional
  import click
  import streamlit.runtime.caching
  import streamlit.runtime.legacy_caching
  import streamlit.web.bootstrap
  from streamlit import config
  from streamlit.config_option import ConfigOption
  from streamlit.runtime.credentials import Credentials, check_credentials
  from streamlit.web.cache_storage_manager_config import create_default_cache_storage_manager
label_desc: Use image node_id 3 for calling a global function with example usage: configurator_options(func) and returns: func