def getset(arg):
    """
    Return a set object

    :type arg: None, str or list
    :param arg: argument to turn into a set
    :rtype: set
    :return: a set of the given argument
    """
    if not arg:
        return set()
    elif isinstance(arg, str):
        return set([arg])
    else:
        return set(arg)