def check_key(key, value):
    return lambda event, data: data[key] == value
Generates a check function for a certain key-value pair.
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/tools/task.py/check_key