def not_in_dict_or_none(dict, key):
    if key not in dict or dict[key] is None:
        return True
    else:
        return False
Check if a key exists in a map and if it's not None
dataset/ETHPy150Open beerfactory/hbmqtt/hbmqtt/utils.py/not_in_dict_or_none