def get_attributes(label_data):
    """Reads all attributes of label.

    Args:
        label_data (dict): List of label attributes

    Returns:
        list: List of all attributes
    """
    attributes = []

    if label_data['attributes'] is not None:
        for attribute_name in label_data['attributes']:
            if len(label_data['attributes'][attribute_name]) > 0:
                for attribute in label_data['attributes'][attribute_name]:
                    attributes.append(attribute['name'])

    return attributes