def get_labels_of_types(asset, label_types):
    """
    Extracts the latest labels from an asset

    Parameters
    ----------
    - asset: the asset to extract the labels from
    - label_types: type of label, either DEFAULT or REVIEW
    """
    labels = [label for label in asset['labels']
              if label['labelType'] in label_types and label['isLatestLabelForUser']]
    return sorted(labels, key=lambda label: label['createdAt'])