code: def __init__(self, node, all_vars):
      self.name = node["name"]
      self.show_name = node["show_name"]
      self.type = node["type"]
      self.attributes = [
          Attribute(key, value, node["attr_types"][key])
          for key, value in node["attrs"].items()
      ]
      self.inputs = [
          Parameter(
              key, [Argument(name, all_vars[name]) for name in value]
          )
          for key, value in node["input_vars"].items()
      ]
      self.outputs = [
          Parameter(
              key, [Argument(name, all_vars[name]) for name in value]
          )
          for key, value in node["output_vars"].items()
      ]
      self.chain = []
      self.visible = True
      self.is_leaf = node["is_leaf_node"]
      super(Node, self).__init__(
          name=self.name,
          type=self.type,
          attributes=self.attributes,
          inputs=self.inputs,
          outputs=self.outputs,
          chain=self.chain,
          visible=self.visible,
          is_leaf=self.is_leaf,
          show_name=self.show_name,
      )
  
imports: from collections import defaultdict
  from collections import deque
label_desc: Use image node_id 1 to create a new Node object from inherited base classes: dict with example: obj = Node(node, all_vars)