def load_tasks(cls, path: str) -> tuple[list['Task'], int]:
        """Load all the tasks from a given jsonl file."""
        assert path.endswith('.jsonl') or path.endswith('.json')
        with open(path, 'r') as f:
            tasks = [cls(**json.loads(line)) for line in f.readlines()]
        LOGGER.info(f'Loaded {len(tasks)} tasks from {path}')
        return tasks, len(tasks)
Load all the tasks from a given jsonl file.
evaluation/benchmarks/mint/tasks/base.py