def is_primitive(obj):
    """Helper method to see if the object is a basic data type. Unicode strings,
    integers, longs, floats, booleans, and None are considered primitive
    and will return True when passed into *is_primitive()*

    >>> is_primitive(3)
    True
    >>> is_primitive([4,4])
    False
    """
    if obj is None:
        return True
    elif PRIMITIVES in type(obj):
        return True
    return False
dataset/ETHPy150Open jsonpickle/jsonpickle/jsonpickle/util.py/is_primitive/swapped operands of `in`