class_docstr: This subclass of `argparse.ArgumentParser` uses type hints on dataclasses to generate arguments.
  
  The class is designed to play well with the native argparse. In particular, you can add more (non-dataclass backed)
  arguments to the parser after initialization and you'll get the output back after parsing as an additional
  namespace.
class_docstr_tok: ["This","subclass","of","`","argparse.ArgumentParser","`","uses","type","hints","on","dataclasses","to","generate","arguments",".","The","class","is","designed","to","play","well","with","the","native","argparse",".","In","particular",",","you","can","add","more","(","non-dataclass","backed",")","arguments","to","the","parser","after","initialization","and","you","'ll","get","the","output","back","after","parsing","as","an","additional","namespace","."]
docstr: Alternative helper method that does not use `argparse` at all, instead uses a dict and populating the dataclass
  types.
docstr_tok: ["Alternative","helper","method","that","does","not","use","`","argparse","`","at","all",",","instead","uses","a","dict","and","populating","the","dataclass","types","."]
code: def parse_dict(self, args: dict) -> Tuple[DataClass, ...]:
      """
      Alternative helper method that does not use `argparse` at all, instead uses a dict and populating the dataclass
      types.
      """
      outputs = []
      for dtype in self.dataclass_types:
          keys = {f.name for f in dataclasses.fields(dtype)}
          inputs = {k: v for k, v in args.items() if k in keys}
          obj = dtype(**inputs)
          outputs.append(obj)
      return (*outputs,)
  
file_path: FATE/python/fate/arch/launchers/argparser.py
imports: import dataclasses
  import json
  import sys
  from argparse import ArgumentParser
  from enum import Enum
  from pathlib import Path
  from typing import Any, Iterable, List, NewType, Optional, Tuple, Union
label_desc: Use image node_id 5 for calling the HfArgumentParser obj's underlying member method code with example usage: obj.parse_dict(args) and returns: unknown