def METHOD_NAME(self, target_file: str, split: str) -> List[Instance]:
    """
    Helper for generating instances for a split.
    Args:
        target_file (str): Data file.
        split (str): Which splits to partition the data into.
    Returns:
        List[Instance]: Instances from the file for the specified split.
    """
    all_samples: List[Dict] = []
    with open(target_file, encoding="utf-8") as f:
        for line in f:
            all_samples.append(json.loads(line))
    file_instances: List[Instance] = []
    for sample in all_samples:
        prompt, answers = self.process_example(sample)
        instance = Instance(
            input=prompt,
            references=[Reference(Output(text=answer), tags=[CORRECT_TAG]) for answer in answers],
            split=split,
        )
        file_instances.append(instance)
    return file_instances