code: def get_value(*, section: str, option: str) -> Response:
      serializer = {
          "text/plain": _config_to_text,
          "application/json": _config_to_json,
      }
      return_type = request.accept_mimetypes.best_match(
          serializer.keys()
      )
      if (
          conf.get("webserver", "expose_config").lower()
          == "non-sensitive-only"
      ):
          expose_config = True
      else:
          expose_config = conf.getboolean("webserver", "expose_config")
  
      if return_type not in serializer:
          return Response(status=HTTPStatus.NOT_ACCEPTABLE)
      elif expose_config:
          if not conf.has_option(section, option):
              raise NotFound(
                  "Config not found.",
                  detail=f"The option [{section}/{option}] is not found in config.",
              )
  
          if (
              section.lower(),
              option.lower(),
          ) in conf.sensitive_config_values:
              value = "< hidden >"
          else:
              value = conf.get(section, option)
  
          config = Config(
              sections=[
                  ConfigSection(
                      name=section,
                      options=[ConfigOption(key=option, value=value)],
                  )
              ]
          )
          config_text = serializer[return_type](config)
          return Response(
              config_text, headers={"Content-Type": return_type}
          )
      else:
          raise PermissionDenied(
              detail=(
                  "Your Airflow administrator chose not to expose the configuration, most likely for security"
                  " reasons."
              )
          )
  
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 7 for calling a global function with example usage: get_value() and returns: Response, Response