from functools import reduce


def union(sets):
    """Get the union of all input sets"""
    if all((type(i)==type(set()) for i in sets)):
        return reduce(set.union, sets)
    else:
        sets = list(map(set, sets))
        return reduce(set.union, sets)