def remove_semantic_data(self, path_as_list):
        """ Removes a entry from the semantic data vividict.

        :param list path_as_list: The path of the vividict to delete.
        :return: removed value or dict
        """
        if len(path_as_list) == 0:
            raise AttributeError("The argument path_as_list is empty but but the method remove_semantic_data needs a "
                                 "valid path to remove a vividict item.")
        target_dict = self.get_semantic_data(path_as_list[0:-1])
        removed_element = target_dict[path_as_list[-1]]
        del target_dict[path_as_list[-1]]
        return removed_element
def remove_semantic_data ( self , path_as_list ) : if len ( path_as_list ) == 0 : raise AttributeError ( "The argument path_as_list is empty but but the method remove_semantic_data needs a " "valid path to remove a vividict item." ) target_dict = self . get_semantic_data ( path_as_list [ 0 : - 1 ] ) removed_element = target_dict [ path_as_list [ - 1 ] ] del target_dict [ path_as_list [ - 1 ] ] return removed_element
Removes a entry from the semantic data vividict.

        :param list path_as_list: The path of the vividict to delete.
        :return: removed value or dict