def METHOD_NAME(self) -> None:
    """Check the Frame to RLE conversion."""
    json_file = get_test_file("scalabel_ins_seg.json")
    frames = load(json_file).frames
    for frame in frames:
        if frame.labels is None:
            continue
        poly2ds = [
            label.poly2d
            for label in frame.labels
            if label.poly2d is not None
        ]
        masks = frame_to_masks(SHAPE, poly2ds)
        rles_dt = [mask_to_rle(mask) for mask in masks]
        rles_gt = [
            label.rle for label in frame.labels if label.rle is not None
        ]
        for dt, gt in zip(rles_dt, rles_gt):
            self.assertEqual(dt, gt)
        rles_dt = frame_to_rles(SHAPE, poly2ds)
        for dt, gt in zip(rles_dt, rles_gt):
            self.assertEqual(dt, gt)