def METHOD_NAME(buffer):
    event = "buffer", {"event": "data"}
    buffer.put_event(event)
    popped_event = buffer.pop_event()
    assert id(event) != id(popped_event)
    assert event == popped_event
    assert buffer.size() == 0
    assert buffer.pop_event() is None