class_docstr: Customed Graph class.
code: def __init__(self, max_layer_num, inputs, output, hide):
      self.layers = []
      self.max_layer_num = max_layer_num
  
      for layer in inputs:
          self.layers.append(layer)
      for layer in output:
          self.layers.append(layer)
      if hide is not None:
          for layer in hide:
              self.layers.append(layer)
      assert self.is_legal()
  
imports: import copy
  import json
  import random
  from enum import Enum, unique
label_desc: Use image node_id 1 to create a new Graph object from inherited base classes: object with example: obj = Graph(max_layer_num, inputs, output, hide)