class_docstr: Base class to inherit for concrete executors such as Celery, Kubernetes, Local, Sequential, etc.
  
  :param parallelism: how many jobs should run at one time. Set to ``0`` for infinity.
class_docstr_tok: ["Base","class","to","inherit","for","concrete","executors","such","as","Celery",",","Kubernetes",",","Local",",","Sequential",",","etc",".",":","param","parallelism",":","how","many","jobs","should","run","at","one","time",".","Set","to","``","0","``","for","infinity","."]
docstr: Generate documentation; used by Sphinx argparse.
  
  :meta private:
docstr_tok: ["Generate","documentation",";","used","by","Sphinx","argparse",".",":","meta","private",":"]
code: def _get_parser(cls) -> argparse.ArgumentParser:
      """Generate documentation; used by Sphinx argparse.
  
      :meta private:
      """
      from airflow.cli.cli_parser import (
          AirflowHelpFormatter,
          _add_command,
      )
  
      parser = DefaultHelpParser(
          prog="airflow", formatter_class=AirflowHelpFormatter
      )
      subparsers = parser.add_subparsers(
          dest="subcommand", metavar="GROUP_OR_COMMAND"
      )
      for group_command in cls.get_cli_commands():
          _add_command(subparsers, group_command)
      return parser
  
imports: from __future__ import annotations
  import logging
  import sys
  import warnings
  from collections import defaultdict
  from dataclasses import dataclass, field
  from typing import TYPE_CHECKING, Any, List, Optional, Sequence, Tuple
  import pendulum
  from airflow.cli.cli_config import DefaultHelpParser
  from airflow.configuration import conf
  from airflow.exceptions import RemovedInAirflow3Warning
  from airflow.stats import Stats
  from airflow.utils.log.logging_mixin import LoggingMixin
  from airflow.utils.state import TaskInstanceState
label_desc: Use image node_id 28 for calling the BaseExecutor obj's underlying member method code with example usage: obj._get_parser(cls) and returns: parser