class_docstr: The super class for all nodes.
  A node has children, a type and possibly a parent node.
class_docstr_tok: ["The","super","class","for","all","nodes",".","A","node","has","children",",","a","type","and","possibly","a","parent","node","."]
code: def __init__(self, children: List[NodeOrLeaf]) -> None:
      self.children = children
      """
          A list of :class:`NodeOrLeaf` child nodes.
          """
      self.parent: Optional[BaseNode] = None
      """
          The parent :class:`BaseNode` of this node.
          None if this is the root node.
          """
      for child in children:
          child.parent = self
  
imports: from abc import abstractmethod, abstractproperty
  from typing import List, Optional, Tuple, Union
  from parso.utils import split_lines
label_desc: Use image node_id 1 to create a new BaseNode object from inherited base classes: NodeOrLeaf with example: obj = BaseNode(children)