<｜begin▁of▁sentence｜>### Instruction:
Given that you have performed several operations on a graph through a connection to a Gephi master server running at 'http://localhost:8080/workspace0', how do you ensure that all the pending operations are flushed and sent to the Gephi server before closing the connection?
### Response:
from gephi.streaming import GephiConnection

# Create a connection to the Gephi master server
with GephiConnection('http://localhost:8080/workspace0', autoflush=False) as connection:
    # perform graph operations...
    # When finished with graph operations
    connection.close()
<|EOT|>
