class_docstr: Extension of argparse.ArgumentParser supporting config files.
  
  The option --config is added automatically and expects a YAML serialized
  dictionary, similar to the return value of parse_args(). Command line
  parameters have precedence over config file values. Usage should be
  transparent, just substitute argparse.ArgumentParser with this class.
  
  Extended from
  https://stackoverflow.com/questions/28579661/getting-required-option-from-namespace-in-python
class_docstr_tok: ["Extension","of","argparse.ArgumentParser","supporting","config","files",".","The","option","--","config","is","added","automatically","and","expects","a","YAML","serialized","dictionary",",","similar","to","the","return","value","of","parse_args","(",")",".","Command","line","parameters","have","precedence","over","config","file","values",".","Usage","should","be","transparent",",","just","substitute","argparse.ArgumentParser","with","this","class",".","Extended","from","https",":","\/\/stackoverflow.com\/questions\/28579661\/getting-required-option-from-namespace-in-python"]
code: def __init__(self, *args, **kwargs) -> None:
      super().__init__(*args, **kwargs)
      self.argument_definitions = {}  # type: Dict[Tuple, Dict]
      self.argument_actions = []  # type: List[Any]
      self._overwrite_add_argument(self)
      self.add_argument(
          "--config",
          help="Path to CLI arguments in yaml format "
          "(as saved in Sockeye model directories as 'args.yaml'). "
          "Commandline arguments have precedence over values in this file.",
          type=str,
      )
  
imports: import argparse
  import os
  import sys
  import types
  from typing import Any, Callable, Dict, List, Tuple, Optional
  import yaml
  from sockeye.utils import smart_open
  from .None import constants
label_desc: Use image node_id 1 to create a new ConfigArgumentParser object from inherited base classes: argparse with example: obj = ConfigArgumentParser()