code: def _process_doc(self, doc):
      out_doc = {
          "query": doc["startphrase"],
          "choices": [
              doc["ending0"],
              doc["ending1"],
              doc["ending2"],
              doc["ending3"],
          ],
          "gold": int(doc["label"]),
      }
      return out_doc
  
file_path: lm-evaluation-harness/lm_eval/tasks/swag.py
imports: from lm_eval.base import MultipleChoiceTask
label_desc: Use image node_id 6 for calling the SWAG obj's underlying member method code with example usage: obj._process_doc(doc) and returns: out_doc