def is_protected_type(obj):
    return isinstance(obj, (
        types.NoneType,
        int, long,
        datetime.datetime, datetime.date, datetime.time,
        float, Decimal)
    )
Fetch a console pool for a given proxy host, compute host, and type.
dataset/ETHPy150Open dcramer/sentry-old/sentry/utils/encoding.py/is_protected_type--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/db/api.py/console_pool_get_by_host_type