code: def add_speech_generation_args(parser):
      group = parser.add_argument_group("Speech Generation")
      add_common_eval_args(group)  # NOTE: remove_bpe is not needed
      # fmt: off
      group.add_argument('--eos_prob_threshold', default=0.5, type=float,
                         help='terminate when eos probability exceeds this')
      # fmt: on
      return group
  
imports: import argparse
  from pathlib import Path
  from typing import Callable, List, Optional, Union
  import torch
  from fairseq import utils
  from fairseq.data.indexed_dataset import get_available_dataset_impl
  from fairseq.dataclass.configs import CheckpointConfig, CommonConfig, CommonEvalConfig, DatasetConfig, DistributedTrainingConfig, EvalLMConfig, GenerationConfig, InteractiveConfig, OptimizationConfig, EMAConfig
  from fairseq.dataclass.utils import gen_parser_from_dataclass
  from fairseq.utils import csv_str_list, eval_bool, eval_str_dict, eval_str_list
label_desc: Use image node_id 18 for calling a global function with example usage: add_speech_generation_args(parser) and returns: group