<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_string(node):
 """ Convert a node into a string in NRML format """

    with io.BytesIO() as f:
        write([node], f)
        return f.getvalue().decode('utf-8')