async def METHOD_NAME(c, s, a, b):
    # Pickling an event should work properly
    def f(x, event=None):
        assert event.name == "x"
        return x + 1
    event = Event("x")
    futures = c.map(f, range(10), event=event)
    await c.gather(futures)
    event2 = pickle.loads(pickle.dumps(event))
    assert event2.name == event.name
    assert event2.client is event.client