code: def add_args_rescore(parser):
      """add arguments only used in rescoring mode"""
      parser.add_argument(
          "--unk-reward",
          default=-1.0,
          type=float,
          help=(
              "Value to add to (log-prob) score for UNK tokens. "
              "Value < 0 (the usual case) encourages fewer UNKs, while > 0 "
              "encourages more UNKs."
          ),
      )
      parser.add_argument(
          "--append-eos-to-source",
          default=False,
          type=bool,
          help=("If true, append EOS to source sentences"),
      )
      parser.add_argument(
          "--batch-size",
          default=1,
          type=int,
          help="batch size for rescoring",
      )
      parser.add_argument(
          "--translation-info-export-path",
          default=None,
          type=str,
          help=(
              "Optional path to save translation info output in pickled format"
          ),
      )
      parser.add_argument(
          "--scores-info-export-path",
          default=None,
          type=str,
          help=("Optional path to save score output in pickled format"),
      )
  
imports: import argparse
  import pickle
  from enum import Enum
  import torch
  from fairseq.scoring import bleu
  from pytorch_translate import hybrid_transformer_rnn, utils
  from pytorch_translate.rescoring.model_scorers import LMScorer, R2LModelScorer, ReverseModelScorer, SimpleModelScorer
  from pytorch_translate.research.rescore import cloze_transformer_model
  from pytorch_translate.tasks import pytorch_translate_task
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: add_args_rescore(parser) without return types