code: def _conf_dict_to_config(conf_dict: dict) -> Config:
      """Convert config dict to a Config object."""
      config = Config(
          sections=[
              ConfigSection(
                  name=section,
                  options=[
                      ConfigOption(key=key, value=value)
                      for key, value in options.items()
                  ],
              )
              for section, options in conf_dict.items()
          ]
      )
      return config
  
file_path: airflow/airflow/api_connexion/endpoints/config_endpoint.py
imports: from __future__ import annotations
  from http import HTTPStatus
  from flask import Response, request
  from airflow.api_connexion import security
  from airflow.api_connexion.exceptions import NotFound, PermissionDenied
  from airflow.api_connexion.schemas.config_schema import Config, ConfigOption, ConfigSection, config_schema
  from airflow.configuration import conf
  from airflow.settings import json
label_desc: Use image node_id 1 for calling a global function with example usage: _conf_dict_to_config(conf_dict) and returns: config