code: def gen_prompt(train_df, subject, k=-1):
      prompt = "The following are multiple choice questions (with answers) about {}.\n\n".format(
          format_subject(subject)
      )
      if k == -1:
          k = train_df.shape[0]
      for i in range(k):
          prompt += format_example(train_df, i)
      return prompt
  
file_path: OpenNMT-py/eval_llm/MMLU-FR/run_mmlu_opennmt_fr.py
imports: import json
  import os
  import time
  import pandas
  from onmt.utils.logging import init_logger
  from onmt.inference_engine import InferenceEnginePY
  import onmt.opts
  from onmt.utils.parse import ArgumentParser
  from onmt.utils.misc import use_gpu, set_random_seed
label_desc: Use image node_id 4 for calling a global function with example usage: gen_prompt(train_df, subject, k) and returns: prompt