<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self, *messages):
 """Push a list of messages in the inputs of this graph's inputs, matching the output of special node "BEGIN" in our graph."""


        for i in self.graph.outputs_of(BEGIN):
            for message in messages:
                self[i].write(message)