class_docstr: Node configuration.
  
  name: node name
  contents: a list of contents - attributes and child nodes
  See comment at the top of the configuration file for details.
class_docstr_tok: ["Node","configuration",".","name",":","node","name","contents",":","a","list","of","contents","-","attributes","and","child","nodes","See","comment","at","the","top","of","the","configuration","file","for","details","."]
code: def _gen_init(self):
      src = "class %s(Node):\n" % self.name
  
      if self.all_entries:
          args = ", ".join(self.all_entries)
          slots = ", ".join("'{0}'".format(e) for e in self.all_entries)
          slots += ", 'coord', '__weakref__'"
          arglist = "(self, %s, coord=None)" % args
      else:
          slots = "'coord', '__weakref__'"
          arglist = "(self, coord=None)"
  
      src += "    __slots__ = (%s)\n" % slots
      src += "    def __init__%s:\n" % arglist
  
      for name in self.all_entries + ["coord"]:
          src += "        self.%s = %s\n" % (name, name)
  
      return src
  
file_path: catboost/contrib/python/pycparser/py3/pycparser/_ast_gen.py
imports: from string import Template
label_desc: Use image node_id 3 for calling the NodeCfg obj's underlying member method code with example usage: obj._gen_init() and returns: src