class_docstr: Each `Instance` in a `Scenario` looks like this:
  
      <input> -> <reference1>
                 <reference2>
                 <reference3> [correct]
                 <reference4>
  
  We can define a label (e.g., letter) for each reference:
  
      <instructions>
  
      <input>                  # train
      A. <reference1>
      B. <reference2>
      C. <reference3>
      D. <reference4>
      Answer: C
  
      <input>                  # test
      A. <reference1>
      B. <reference2>
      C. <reference3>
      D. <reference4>
      Answer:
  
  In general, each example is:
  
      <input_prefix><input><reference_prefixes[0]><reference><output_prefix><output>
docstr: Return a list of lines corresponding to this example (part of the prompt).
docstr_tok: ["Return","a","list","of","lines","corresponding","to","this","example","(","part","of","the","prompt",")","."]
code: def construct_example_prompt(
      self,
      instance: Instance,
      include_output: bool,
      reference_index: Optional[int],
  ) -> str:
      """Return a list of lines corresponding to this example (part of the prompt)."""
      # Input
      result: str = (
          self.adapter_spec.input_prefix
          + instance.input.text
          + self.adapter_spec.input_suffix
      )
  
      # Include the references
      output = "n/a"
      for reference_index, reference in enumerate(instance.references):
          prefix = self.get_reference_prefix(
              self.adapter_spec.reference_prefix, reference_index
          )
          result += (
              prefix
              + reference.output.text
              + self.adapter_spec.reference_suffix
          )
          if reference.is_correct and output == "n/a":
              output = self.get_reference_prefix("A", reference_index)
  
      if include_output:
          result += (
              self.adapter_spec.output_prefix
              + output
              + self.adapter_spec.output_suffix
          )
      else:
          result += self.adapter_spec.output_prefix.rstrip()
  
      return result
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/adaptation/adapters/multiple_choice_joint_adapter.py
imports: from typing import List, Dict, Optional
  from helm.benchmark.adaptation.request_state import RequestState
  from helm.benchmark.scenarios.scenario import Instance
  from helm.common.request import Request
  from .in_context_learning_adapter import InContextLearningAdapter
label_desc: Use image node_id 3 for calling the MultipleChoiceJointAdapter obj's underlying member method code with example usage: obj.construct_example_prompt(instance, include_output, reference_index) and returns: result