code: def add_entrypoints_to_interface_groups(interface_groups):
      from datalad.support.entrypoints import iter_entrypoints
  
      for name, _, spec in iter_entrypoints(
          "datalad.extensions", load=True
      ):
          if len(spec) < 2 or not spec[1]:
              # entrypoint identity was logged by the iterator already
              lgr.debug("Extension does not provide a command suite")
              continue
          interface_groups.append((name, spec[0], spec[1]))
  
imports: import argparse
  import os
  import re
  import sys
  import gzip
  import textwrap
  from textwrap import wrap
  from datalad import __version__
  from datalad.support.exceptions import CapturedException
  from datalad.ui.utils import get_console_width
  from datalad.utils import is_interactive
  from platformdirs import AppDirs
  from logging import getLogger
label_desc: Use image node_id 1 for calling a global function with example usage: add_entrypoints_to_interface_groups(interface_groups) without return types