code: def _add_group_command(
      sub: GroupCommand, sub_proc: argparse.ArgumentParser
  ) -> None:
      subcommands = sub.subcommands
      sub_subparsers = sub_proc.add_subparsers(
          dest="subcommand", metavar="COMMAND"
      )
      sub_subparsers.required = True
      for command in sorted(subcommands, key=lambda x: x.name):
          _add_command(sub_subparsers, command)
  
imports: from __future__ import annotations
  import argparse
  import logging
  import sys
  from argparse import Action
  from collections import Counter
  from functools import lru_cache
  from typing import TYPE_CHECKING, Iterable
  import lazy_object_proxy
  from rich_argparse import RawTextRichHelpFormatter, RichHelpFormatter
  from airflow.cli.cli_config import DAG_CLI_DICT, ActionCommand, DefaultHelpParser, GroupCommand, core_commands
  from airflow.cli.utils import CliConflictError
  from airflow.exceptions import AirflowException
  from airflow.executors.executor_loader import ExecutorLoader
  from airflow.utils.helpers import partition
  from airflow.www.extensions.init_auth_manager import get_auth_manager_cls
label_desc: Use image node_id 5 for calling a global function with example usage: _add_group_command(sub, sub_proc) without return types