def get_category(annotation):
    """
    Extracts a category from an annotation

    Parameters
    ----------
    - annotation : Kili annotation
    """
    try:
        return annotation['categories'][0]['name']
    except KeyError:
        return None