def dict_to_labelvalue(d):
    """return label, value of a single entry dictionary.

    If the dictionary contains more than one key/value pair,
    return the complete dictionary.
    """
    if len(d) == 1:
        return list(d.keys())[0], list(d.values())[0]
    else:
        return 'all', d
