code: def get_commands_from_groups(groups):
      """Get a dictionary of command: interface_spec"""
      from .interface import get_cmdline_command_name
  
      return {
          get_cmdline_command_name(_intfspec): _intfspec
          for _, _, _interfaces in groups
          for _intfspec in _interfaces
      }
  
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 2 for calling a global function with example usage: get_commands_from_groups(groups) and returns: unknown