def METHOD_NAME(mylist):
    """If all elements are equal return only one element"""
    if not is_iterable(mylist):
        return mylist
    if all_equal(mylist):
        if len(mylist) == 0:
            return None
        else:
            return mylist[0]
    else:
        return mylist