def parsetagvalue(term):
    """
    This function obtains all attributes of a term and puts it in
    a dictionary. Though it returns an empty string if function
    input is not an GO term.
    :param term:
    A list containing all information from one term obtained
    from the obofile.
    :return:
    """
    if not term or term[0][0:7] != 'id: GO:':
        return ''
    data = {}
    for line in term:
        tag = line.split(': ', 1)[0]
        value = line.split(': ', 1)[1]
        if tag not in data:
            data[tag] = []
        data[tag].append(value)
    return data