def METHOD_NAME(ann_filepath: str) -> Dict[int, List[Label]]:
    """Parse annotation file into List of Scalabel Label type per frame."""
    outputs = defaultdict(list)
    for line in load_file_as_list(ann_filepath):
        gt = line.strip().split(",")
        class_id = gt[7]
        if class_id not in NAME_MAPPING:
            continue
        class_name = NAME_MAPPING[class_id]
        if class_name in IGNORE:
            continue
        frame_id, ins_id = (int(x) for x in gt[:2])
        box2d = bbox_to_box2d([float(x) for x in gt[2:6]])
        attrs: Dict[str, Union[bool, float, str]] = dict(
            visibility=float(gt[8])
        )
        ann = Label(
            category=class_name,
            id=ins_id,
            box2d=box2d,
            attributes=attrs,
        )
        outputs[frame_id].append(ann)
    return outputs