def in_dict(obj, key, default=False):
    """
    Returns true if key exists in obj.__dict__; false if not in.
    If obj.__dict__ is absent, return default
    """
    return (key in obj.__dict__) if getattr(obj, '__dict__', None) else default
dataset/ETHPy150Open jsonpickle/jsonpickle/jsonpickle/util.py/in_dict/original