docstr: raw_contents contains a list of (context, answer) pairs
docstr_tok: ["raw_contents","contains","a","list","of","(","context",",","answer",")","pairs"]
code: def translate(self, raw_contents: List[Tuple[str]], batch_size=1):
      """raw_contents contains a list of (context, answer) pairs"""
      self.model.eval()
      ret = self.inference_tool.predict(
          raw_contents=raw_contents, batch_size=batch_size
      )
      return ret
  
file_path: graph4nlp/examples/pytorch/question_generation/inference.py
imports: import argparse
  import os
  from typing import List, Tuple
  import numpy
  import torch
  from nltk.tokenize import word_tokenize
  from graph4nlp.pytorch.data.dataset import DoubleText2TextDataItem, DoubleText2TextDataset
  from graph4nlp.pytorch.inference_wrapper.generator_inference_wrapper import GeneratorInferenceWrapper
  from graph4nlp.pytorch.modules.config import get_basic_args
  from graph4nlp.pytorch.modules.utils import constants
  from graph4nlp.pytorch.modules.utils.config_utils import get_yaml_config, update_values
  from .main import QGModel
label_desc: Use image node_id 4 for calling the ModelHandler obj's underlying member method code with example usage: obj.translate(raw_contents, batch_size) and returns: ret