def METHOD_NAME(self) -> None:
    """Check the Poly2ds to COCO polygons conversion."""
    poly_file = get_test_file("polygon.npy")
    polygon = np.load(poly_file).tolist()
    ann = AnnType(id=1, image_id=1, category_id=1, iscrowd=0, ignore=0)
    json_file = get_test_file("poly2ds_to_polygon.json")
    with open_read_text(json_file) as fp:
        poly2ds = json.load(fp)
    ann = poly2ds_to_coco(ann, parse_obj_as(List[Poly2D], poly2ds), ImageSize(width=1, height=1), True)
    assert ann["segmentation"] == polygon