def new_heading_cell(source=None, rendered=None, level=<NUM_LIT:1>, metadata=None):
cell = NotebookNode()<EOL>cell.cell_type = u'<STR_LIT>'<EOL>if source is not None:<EOL><INDENT>cell.source = unicode(source)<EOL><DEDENT>if rendered is not None:<EOL><INDENT>cell.rendered = unicode(rendered)<EOL><DEDENT>cell.level = int(level)<EOL>cell.metadata = NotebookNode(metadata or {})<EOL>return cell<EOL>
Create a new section cell with a given integer level.