nodes: 0, module; 1, function_definition; 2, function_name:write_dag; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, expression_statement; 8, for_statement; 9, identifier:out; 10, attribute; 11, comment:"""Write info for all GO Terms in obo file, sorted numerically."""; 12, identifier:rec; 13, call; 14, block; 15, identifier:sys; 16, identifier:stdout; 17, identifier:sorted; 18, argument_list; 19, expression_statement; 20, call; 21, call; 22, attribute; 23, argument_list; 24, identifier:print; 25, argument_list; 26, identifier:self; 27, identifier:values; 28, identifier:rec; 29, keyword_argument; 30, identifier:file; 31, identifier:out
code: def write_dag(self, out=sys.stdout):
          """Write info for all GO Terms in obo file, sorted numerically."""
          for rec in sorted(self.values()):
              print(rec, file=out)