def write(self, <EOL>features=None, <EOL>outfile=None, <EOL>format=<NUM_LIT:0>, <EOL>is_leaf_fn=None,<EOL>format_root_node=False, <EOL>dist_formatter=None, <EOL>support_formatter=None,<EOL>name_formatter=None):
nw = write_newick(self, features=features,<EOL>format=format,<EOL>is_leaf_fn=is_leaf_fn,<EOL>format_root_node=format_root_node,<EOL>dist_formatter=dist_formatter,<EOL>support_formatter=support_formatter,<EOL>name_formatter=name_formatter)<EOL>if outfile is not None:<EOL><INDENT>with open(outfile, "<STR_LIT:w>") as OUT:<EOL><INDENT>OUT.write(nw)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return nw<EOL><DEDENT>
Returns the newick representation of current node. Several
arguments control the way in which extra data is shown for
every node:

Parameters:
-----------
features: 
    a list of feature names to be exported using the Extended Newick 
    Format (i.e. features=["name", "dist"]). Use an empty list to 
    export all available features in each node (features=[])

outfile:
    writes the output to a given file

format: 
    defines the newick standard used to encode the tree. 

format_root_node: 
    If True, it allows features and branch information from root node
    to be exported as a part of the newick text string. For newick 
    compatibility reasons, this is False by default.

is_leaf_fn: 
    See :func:`TreeNode.traverse` for documentation.

**Example:**
     t.get_newick(features=["species","name"], format=1)