def METHOD_NAME(received_message, type, varname, value):
    assert isinstance(received_message, dict)
    assert "name" in received_message and received_message["name"] == "message"
    assert "args" in received_message
    args = received_message["args"]
    assert "type" in args and args["type"] == type
    assert "name" in args and args["name"] == varname
    assert "payload" in args
    payload = args["payload"]
    assert "value" in payload and payload["value"] == value
    logging.getLogger().debug(payload["value"])