class_docstr: OpenNMT option parser powered with option check methods.
code: def validate_translate_opts(cls, opt):
      if opt.gold_align:
          assert (
              opt.report_align
          ), "-report_align should be enabled with -gold_align"
          assert (
              not opt.replace_unk
          ), "-replace_unk option can not be used with -gold_align enabled"
          assert opt.tgt, "-tgt should be specified with -gold_align"
  
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 7 for calling the ArgumentParser obj's underlying member method code with example usage: obj.validate_translate_opts(cls, opt) without return types