def create_weaviate_import_obj(line_obj):
    """
    Creates an import objects that fits a Weaviatae

    Returns
    --------
    dict
        Object that fits the Weaviate import model
    """

    weaviate_import_object = []
    # check if entity, else it is a label
    if "entity_url" in line_obj:
        weaviate_import_object.append({ "url": line_obj["entity_url"] })
        weaviate_import_object.append("Entity")
    else:
        weaviate_import_object.append({
            "content": line_obj["label"].encode().decode("unicode-escape"),
            "language": line_obj["label_language"] }
        )
        weaviate_import_object.append("Label")
    # append the vectors that represent the entity or label
    weaviate_import_object.append(line_obj["vectors"])
    return weaviate_import_object