class_docstr: OpenNMT option parser powered with option check methods.
docstr: Get default arguments added to a parser by all ``*args``.
docstr_tok: ["Get","default","arguments","added","to","a","parser","by","all","``","*","args","``","."]
code: def defaults(cls, *args):
      """Get default arguments added to a parser by all ``*args``."""
      dummy_parser = cls()
      for callback in args:
          callback(dummy_parser)
      defaults = dummy_parser.parse_known_args([])[0]
      return defaults
  
imports: import configargparse
  import os
  import torch
  import onmt.opts
  from onmt.utils.logging import logger
  from onmt.constants import CorpusName, ModelTask
  from onmt.transforms import AVAILABLE_TRANSFORMS
label_desc: Use image node_id 2 for calling the ArgumentParser obj's underlying member method code with example usage: obj.defaults(cls) and returns: defaults