<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def query(transport, query):
 """Query the Riemann server"""

    with CommandLineClient(transport) as client:
        echo_event(client.query(query))