def get_label_from_response(response):
    """
    Get the response of ModelCatalog and return a list with the labels
    @param response: Response of the ModelCatalog
    @type response: List
    @return: A list with the labels
    @rtype: List
    """
    labels = []
    for resource in response:
        if isinstance(resource, dict):
            if resource['label']:
                labels.append(resource['label'][0])
            elif resource['id']:
                labels.append(resource['id'])
            else:
                labels.append(None)
        elif resource.label:
            labels.append(resource.label[0])
        elif resource.id:
            labels.append(resource.id)
        else:
            labels.append(None)
    return labels
