code: def _prepare_node(node):
      if not hasattr(node, "parent"):
          node.parent = None
      if not hasattr(node, "parents"):
          node.parents = []
      if not hasattr(node, "children"):
          node.children = []
  
imports: import ast
label_desc: Use image node_id 2 for calling the ParentChildNodeTransformer obj's underlying member method code with example usage: obj._prepare_node(node) without return types