def METHOD_NAME(instance: Dict) -> List:
    if 'box' in instance:
        return bbox2poly(instance['box']).tolist()
    if 'poly' in instance:
        return bbox2poly(poly2bbox(instance['poly'])).tolist()