def is_protected_type(obj):
    return isinstance(obj, (
        types.NoneType,
        int, long,
        datetime.datetime, datetime.date, datetime.time,
        float, Decimal)
    )
Determine if the object instance is of a protected type.
dataset/ETHPy150Open xiaoxu193/PyTeaser/goose/utils/encoding.py/is_protected_type