code: def _describe_extensions():
      infos = {}
      from datalad.support.entrypoints import iter_entrypoints
      from importlib import import_module
  
      for ename, emod, eload in iter_entrypoints("datalad.extensions"):
          info = {}
          infos[ename] = info
          try:
              ext = eload()
              info["description"] = ext[0]
              info["module"] = emod
              mod = import_module(emod, package="datalad")
              info["version"] = getattr(mod, "__version__", None)
          except Exception as e:
              ce = CapturedException(e)
              info["load_error"] = ce.format_short()
              continue
          info["entrypoints"] = entry_points = {}
          for ep in ext[1]:
              ep_info = {
                  "module": ep[0],
                  "class": ep[1],
                  "names": ep[2:],
              }
              entry_points["{}.{}".format(*ep[:2])] = ep_info
              try:
                  import_module(ep[0], package="datalad")
              except Exception as e:
                  ce = CapturedException(e)
                  ep_info["load_error"] = ce.format_short()
                  continue
      return infos
  
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 10 for calling a global function with example usage: _describe_extensions() and returns: infos