Export labels from a dataset in COCO format