def get_tags_from_image_ids(image_ids: list=[]):
    """
    Get the tags for the given image_ids
    Note that nulls and 'latest' is ignored
    :param image_ids:
    :return:
    """
    tags = []

    for image in image_ids:
        if ('imageTag') in image:
            tag = image['imageTag']
            if (tag is None) or (tag == 'latest'):
                pass
            else:
                tags = tags + [tag]

    return tags