def new_metadata(name=None, authors=None, license=None, created=None,<EOL>modified=None, gistid=None):
metadata = NotebookNode()<EOL>if name is not None:<EOL><INDENT>metadata.name = unicode(name)<EOL><DEDENT>if authors is not None:<EOL><INDENT>metadata.authors = list(authors)<EOL><DEDENT>if created is not None:<EOL><INDENT>metadata.created = unicode(created)<EOL><DEDENT>if modified is not None:<EOL><INDENT>metadata.modified = unicode(modified)<EOL><DEDENT>if license is not None:<EOL><INDENT>metadata.license = unicode(license)<EOL><DEDENT>if gistid is not None:<EOL><INDENT>metadata.gistid = unicode(gistid)<EOL><DEDENT>return metadata<EOL>
Create a new metadata node.