code: def _describe_configuration(cfg, sensitive):
      if not cfg:
          return _HIDDEN
  
      # make it into a dict to be able to reassign
      cfg = dict(cfg.items())
  
      if sensitive != "all":
          # filter out some of the entries which known to be highly sensitive
          for k in cfg.keys():
              if "user" in k or "token" in k or "passwd" in k:
                  cfg[k] = _HIDDEN
  
      return cfg
  
imports: import logging
  import os
  import os.path
  import sys
  import tempfile
  import textwrap
  from collections import defaultdict
  from functools import partial
  from datalad.dochelpers import get_docstring_split
  from datalad.interface.base import Interface, build_doc
  from datalad.utils import ensure_unicode, getpwd, unlink, Path
  from datalad.support.external_versions import external_versions
  from datalad.support.exceptions import CapturedException, CommandError, InvalidGitRepositoryError
  from datalad import __version__
label_desc: Use image node_id 9 for calling a global function with example usage: _describe_configuration(cfg, sensitive) and returns: cfg, _HIDDEN