class_docstr: Layer class, which contains the information of graph.
code: def __init__(self, graph_type, inputs=None, output=None, size=None):
      self.input = inputs if inputs is not None else []
      self.output = output if output is not None else []
      self.graph_type = graph_type
      self.is_delete = False
      self.size = size
      if graph_type == LayerType.attention.value:
          self.input_size = 2
          self.output_size = 1
      elif graph_type == LayerType.rnn.value:
          self.input_size = 1
          self.output_size = 1
      elif graph_type == LayerType.self_attention.value:
          self.input_size = 1
          self.output_size = 1
      elif graph_type == LayerType.input.value:
          self.input_size = 0
          self.output_size = 1
      elif graph_type == LayerType.output.value:
          self.input_size = 1
          self.output_size = 0
      else:
          print(graph_type)
  
imports: import copy
  import json
  import random
  from enum import Enum, unique
label_desc: Use image node_id 1 to create a new Layer object from inherited base classes: object with example: obj = Layer(graph_type, inputs, output, size)