code: def doc_to_text(self, doc):
      ctxs = "\n".join(doc["context"]["contexts"])
      return "Abstract: {}\nQuestion: {}\nAnswer:".format(
          ctxs, doc["question"], doc["final_decision"]
      )
  
file_path: lm-evaluation-harness/lm_eval/tasks/pubmedqa.py
imports: import numpy
  from lm_eval.base import rf, Task
  from lm_eval.metrics import mean
label_desc: Use image node_id 5 for calling the Pubmed_QA obj's underlying member method code with example usage: obj.doc_to_text(doc) and returns: str