def METHOD_NAME(self, filename, *args):
    with open(filename, "r", encoding="utf8") as f:
        for line in f:
            line = line.strip()
            if not line:
                continue
            json_data = json.loads(line)
            yield {
                "instruction": json_data["instruction"],
                "input": json_data["input"],
                "output": json_data["output"],
            }