code: def _process_doc(self, doc):
      def format_example(doc, keys):
          """
          Question: <prompt>
          Choices:
          A. <choice1>
          B. <choice2>
          C. <choice3>
          D. <choice4>
          Answer:
          """
          prompt = "Question: " + doc["question"] + "\nChoices:\n"
          prompt += "".join(
              [
                  f"{key}. {choice}\n"
                  for key, choice in zip(keys, doc["choices"])
              ]
          )
          prompt += "Answer:"
          return prompt
  
      keys = ["A", "B", "C", "D"]
      return {
          "query": format_example(doc, keys),
          "choices": doc["choices"],
          "gold": keys.index(doc["answer"])
          if isinstance(doc["answer"], str)
          else doc["answer"],
      }
  
file_path: lm-evaluation-harness/lm_eval/tasks/hendrycks_test.py
imports: from lm_eval.base import MultipleChoiceTask
label_desc: Use image node_id 7 for calling the GeneralHendrycksTest obj's underlying member method code with example usage: obj._process_doc(doc) and returns: dict, prompt