<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_graph(self, graph):
 """Adds a `Graph` protocol buffer to the event file."""

        event = event_pb2.Event(graph_def=graph.SerializeToString())
        self._add_event(event, None)