def write_nodes(gtfs, output, fields=None):
nodes = gtfs.get_table("<STR_LIT>")<EOL>if fields is not None:<EOL><INDENT>nodes = nodes[fields]<EOL><DEDENT>with util.create_file(output, tmpdir=True, keepext=True) as tmpfile:<EOL><INDENT>nodes.to_csv(tmpfile, encoding='<STR_LIT:utf-8>', index=False, sep="<STR_LIT:;>")<EOL><DEDENT>
Parameters
----------
gtfs: gtfspy.GTFS
output: str
    Path to the output file
fields: list, optional
    which pieces of information to provide