code: def _dump(cfg, name):
      value = cfg.get(
          name,
          # pull a default from the config definitions
          # if we have no value, but a key
          cfg_defs.get(name, {}).get("default", None),
      )
  
      res = dict(
          action="dump_configuration",
          name=name,
          value=value,
      )
      if name in cfg_defs:
          ui_def = cfg_defs[name].get("ui", [None, {}])[1]
          for s, key in (
              (ui_def.get("title"), "purpose"),
              (ui_def.get("text"), "description"),
              (cfg_defs[name].get("type"), "value_type"),
          ):
              if s:
                  res[key] = s
      return res
  
imports: import logging
  from textwrap import wrap
  import datalad.support.ansi_colors
  from datalad import cfg
  from datalad.distribution.dataset import Dataset, EnsureDataset, datasetmethod, require_dataset
  from datalad.interface.base import Interface, build_doc, eval_results
  from datalad.interface.common_cfg import definitions
  from datalad.interface.common_opts import recursion_flag, recursion_limit
  from datalad.interface.results import get_status_dict
  from datalad.interface.utils import default_result_renderer
  from datalad.support.constraints import EnsureChoice, EnsureNone
  from datalad.support.exceptions import CommandError, NoDatasetFound
  from datalad.support.param import Parameter
  from datalad.utils import Path, ensure_list
label_desc: Use image node_id 2 for calling a global function with example usage: _dump(cfg, name) and returns: res