code: def _convert_config_option_to_click_option(
      config_option: ConfigOption,
  ) -> Dict[str, Any]:
      """Composes given config option options as options for click lib."""
      option = f"--{config_option.key}"
      param = config_option.key.replace(".", "_")
      description = config_option.description
      if config_option.deprecated:
          if description is None:
              description = ""
          description += f"\n {config_option.deprecation_text} - {config_option.expiration_date}"
  
      return {
          "param": param,
          "description": description,
          "type": config_option.type,
          "option": option,
          "envvar": config_option.env_var,
      }
  
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 1 for calling a global function with example usage: _convert_config_option_to_click_option(config_option) and returns: dict