class_docstr:     This prompt format was inspired by the below data in fujiki/japanese_alpaca_data.
      ```
      {
          'instruction': 'この課題では、以下の選択肢から文の出典を特定する必要があります。
  
  出力は以下から選択してください：
  - 新聞
  - 教科書
  - オンライン記事
  - 百科事典',
          'input': '彼はローマの政治家であり哲学者であり、史上最も偉大な軍事指導者の一人と考えられています。',
          'output': '百科事典'
      }
      ```
      Reference:
      - data: https://huggingface.co/datasets/fujiki/japanese_alpaca_data
      - code: https://github.com/Stability-AI/gpt-neox/blob/c130a4edc1120dccec8f02a34eb60d3e8f484cd3/finetune/finetune_base_ja.py#LL118C23-L127C11
      
class_docstr_tok: ["This","prompt","format","was","inspired","by","the","below","data","in","fujiki\/japanese_alpaca_data",".","``","`","{","'instruction","'",":","'\u3053\u306e\u8ab2\u984c\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u9078\u629e\u80a2\u304b\u3089\u6587\u306e\u51fa\u5178\u3092\u7279\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002","\u51fa\u529b\u306f\u4ee5\u4e0b\u304b\u3089\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\uff1a","-","\u65b0\u805e","-","\u6559\u79d1\u66f8","-","\u30aa\u30f3\u30e9\u30a4\u30f3\u8a18\u4e8b","-","\u767e\u79d1\u4e8b\u5178","'",",","'input","'",":","'\u5f7c\u306f\u30ed\u30fc\u30de\u306e\u653f\u6cbb\u5bb6\u3067\u3042\u308a\u54f2\u5b66\u8005\u3067\u3042\u308a\u3001\u53f2\u4e0a\u6700\u3082\u5049\u5927\u306a\u8ecd\u4e8b\u6307\u5c0e\u8005\u306e\u4e00\u4eba\u3068\u8003\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002","'",",","'output","'",":","'\u767e\u79d1\u4e8b\u5178'","}","``","`","Reference",":","-","data",":","https",":","\/\/huggingface.co\/datasets\/fujiki\/japanese_alpaca_data","-","code",":","https",":","\/\/github.com\/Stability-AI\/gpt-neox\/blob\/c130a4edc1120dccec8f02a34eb60d3e8f484cd3\/finetune\/finetune_base_ja.py","#","LL118C23-L127C11"]
docstr: 以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。
  
  ### 指示:
  {instruction}
  
  ### 入力:
  {input}
  
  ### 応答:
  {response}
docstr_tok: ["\u4ee5\u4e0b\u306f\u3001\u30bf\u30b9\u30af\u3092\u8aac\u660e\u3059\u308b\u6307\u793a\u3068\u3001\u6587\u8108\u306e\u3042\u308b\u5165\u529b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3059\u3002\u8981\u6c42\u3092\u9069\u5207\u306b\u6e80\u305f\u3059\u5fdc\u7b54\u3092\u66f8\u304d\u306a\u3055\u3044\u3002","#","#","#","\u6307\u793a",":","{","instruction","}","#","#","#","\u5165\u529b",":","{","input","}","#","#","#","\u5fdc\u7b54",":","{","response","}"]
code: def doc_to_text(self, doc):
      """
      以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。
  
      ### 指示:
      {instruction}
  
      ### 入力:
      {input}
  
      ### 応答:
      {response}
      """
      choices = "\n".join([f"- {choice}" for choice in doc["choices"]])
      instruction_text = (
          self.INSTRUCTION + f"出力は以下から選択してください：\n{choices}"
      )
      input_text = f"{doc['goal']}"
      return f"### 指示:\n{instruction_text}\n\n### 入力:\n{input_text}\n\n### 応答:\n"
  
imports: import os
  import warnings
  import time
  from lm_eval.base import MultipleChoiceTask, rf
  import numpy
label_desc: Use image node_id 1 for calling the JCommonsenseQAWithJAAlpacaPrompt obj's underlying member method code with example usage: obj.doc_to_text(doc) and returns: str, instruction_text, str, input_text, str