code: def _add_action_command(
      sub: ActionCommand, sub_proc: argparse.ArgumentParser
  ) -> None:
      for arg in _sort_args(sub.args):
          arg.add_to_parser(sub_proc)
      sub_proc.set_defaults(func=sub.func)
  
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 4 for calling a global function with example usage: _add_action_command(sub, sub_proc) without return types