code: def add_evaluate_args(params):
      eval_params = params.add_argument_group("Evaluate parameters")
      eval_params.add_argument(
          "--references",
          "-r",
          required=True,
          type=str,
          help="File with references.",
      )
      eval_params.add_argument(
          "--hypotheses",
          "-i",
          type=file_or_stdin(),
          default=[sys.stdin],
          nargs="+",
          help="File(s) with hypotheses. If none will read from stdin. Default: stdin.",
      )
      eval_params.add_argument(
          "--metrics",
          nargs="+",
          choices=C.EVALUATE_METRICS,
          default=[C.BLEU, C.CHRF, C.TER],
          help="List of metrics to compute. Default: %(default)s.",
      )
      eval_params.add_argument(
          "--sentence",
          "-s",
          action="store_true",
          help="Show sentence-level metrics. Default: %(default)s.",
      )
      eval_params.add_argument(
          "--offset",
          type=float,
          default=0.01,
          help="Numerical value of the offset of zero n-gram counts for BLEU. Default: %(default)s.",
      )
      eval_params.add_argument(
          "--not-strict",
          "-n",
          action="store_true",
          help="Do not fail if number of hypotheses does not match number of references. "
          "Default: %(default)s.",
      )
  
imports: import argparse
  import os
  import sys
  import types
  from typing import Any, Callable, Dict, List, Tuple, Optional
  import yaml
  from sockeye.utils import smart_open
  from .None import constants
label_desc: Use image node_id 40 for calling a global function with example usage: add_evaluate_args(params) without return types