class_docstr: Describes a subcommand.
docstr: `subs` is a list containing `Cmd`, `Arg`, and `Group` that describes
  the arguments, subcommands, and mutually exclusive argument groups
  for this command.
docstr_tok: ["`","subs","`","is","a","list","containing","`","Cmd","`",",","`","Arg","`",",","and","`","Group","`","that","describes","the","arguments",",","subcommands",",","and","mutually","exclusive","argument","groups","for","this","command","."]
code: def __init__(
      self,
      name: str,
      func: Optional[Callable],
      help_str: str,
      subs: ArgsDescription,
      is_default: bool = False,
      deprecation_message: Optional[str] = None,
  ) -> None:
      """
      `subs` is a list containing `Cmd`, `Arg`, and `Group` that describes
      the arguments, subcommands, and mutually exclusive argument groups
      for this command.
      """
      self.name = name
      self.help_str = help_str
      self.deprecation_message = deprecation_message
      self.func = func
      # wrap the fn in deprecation warning.
      if self.deprecation_message and self.func:
          self.func = util.deprecated(
              deprecation_warning(self.deprecation_message)
          )(self.func)
  
      if self.func:
          # Force the help string onto the actual function for later. This
          # can be used to print the help string
          self.func.__name__ = help_str
      self.subs = subs
      self.is_default = is_default
  
imports: import functools
  import itertools
  from argparse import SUPPRESS, ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace
  from typing import Any, Callable, List, NamedTuple, Optional, Tuple, Union, cast
  from termcolor import colored
  from determined.common import util
label_desc: Use image node_id 1 to create a new Cmd object  with example: obj = Cmd(name, func, help_str, subs, is_default, deprecation_message)