class_docstr: OpenNMT option parser powered with option check methods.
code: def ckpt_model_opts(cls, ckpt_opt):
      # Load default opt values, then overwrite with the opts in
      # the checkpoint. That way, if there are new options added,
      # the defaults are used.
      opt = cls.defaults(opts.model_opts)
      opt.__dict__.update(ckpt_opt.__dict__)
      return opt
  
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 5 for calling the ArgumentParser obj's underlying member method code with example usage: obj.ckpt_model_opts(cls, ckpt_opt) and returns: opt