code: def _get(cfg, scope, name):
      value = (
          cfg.get_from_source(scope, name)
          if scope
          else cfg.get(
              name,
              # pull a default from the config definitions
              # if we have no value, but a key (i.e. in dump mode)
              cfg_defs.get(name, {}).get("default", None),
          )
      )
      return dict(
          action="get_configuration",
          name=name,
          value=value,
      )
  
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 3 for calling a global function with example usage: _get(cfg, scope, name) and returns: dict