def METHOD_NAME(self, instance: Instance, include_output: bool, reference_index: Optional[int]) -> str:
    """Return an example prompt for binary ranking tasks.
    In the binary ranking prompt specification, the model's task is to
    output RANKING_CORRECT_LABEL if the document included in the prompt
    contains an answer to the query. If the document included does not answer
    the query, the model is expected to output RANKING_WRONG_LABEL.
    Example prompt:
        Passage: Its 25 drops per ml, you guys are all wrong. If it is water, the standard was changed 15 - 20
        years ago to make 20 drops = 1mL. The viscosity of most things is temperature dependent, so this would
        be at room temperature. Hope this helps.
        Query: how many eye drops per ml
        Does the passage answer the query?
        Answer: Yes
    """
    if instance.split == TRAIN_SPLIT:
        reference_indices = list(range(len(instance.references)))
    elif instance.split in EVAL_SPLITS:
        assert reference_index is not None
        reference_indices = [reference_index]
    else:
        raise ValueError(f"Unknown split, expected one of: {[TRAIN_SPLIT] + EVAL_SPLITS}")
    # Create example blocks
    example_blocks: List[str] = []
    for index in reference_indices:
        # Get reference
        reference: Reference = instance.references[index]
        # Construct the passage piece (e.g. "\nPassage: ...\n")
        reference_text: str = (
            self.adapter_spec.reference_prefix + reference.output.text + self.adapter_spec.reference_suffix
        )
        # Construct the question piece (e.g. "\nQuery: ...\n")
        query_text: str = self.adapter_spec.input_prefix + instance.input.text + self.adapter_spec.input_suffix
        # Construct the answer piece (e.g. "\nPrompt: Does the passage above answer the question?\nAnswer: ")
        # If include_output flag is set, answer is appended (e.g. "...\n")
        output_text: str = self.adapter_spec.output_prefix
        if include_output:
            ir_label = self.RANKING_CORRECT_LABEL if CORRECT_TAG in reference.tags else self.RANKING_WRONG_LABEL
            output_text += ir_label + self.adapter_spec.output_suffix
        else:
            output_text = output_text.rstrip()
        # Construct text blocks
        example_block: str = reference_text + query_text + output_text
        example_blocks.append(example_block)
    # Combine the request texts and return
    return self.adapter_spec.instance_prefix.join(example_blocks)