def get_answer_from_example(
        self,
        example: dict,
        in_context: bool = False,
    ) -> str:
        """Returns the correct answer from the example's choices.

        Args:
            example (Dict): The example from which to retrieve the answer
            in_context (bool): Whether this is an in-context example. Default to False.

        Returns:
            str: The full string of the correct answer based on the 'gold' key
        """
        choices = example[self.choices_key]
        gold_idx = example['gold']
        return choices[gold_idx]
Returns the correct answer from the example's choices.

        Args:
            example (Dict): The example from which to retrieve the answer
            in_context (bool): Whether this is an in-context example. Default to False.

        Returns:
            str: The full string of the correct answer based on the 'gold' key
        
llmfoundry/eval/datasets/in_context_learning_evaluation.py