code: def graph_loads(graph_json):
      """
      Load graph
      """
      layers = []
      for layer in graph_json["layers"]:
          layer_info = Layer(
              layer["type"],
              layer["input"],
              layer["output"],
              layer["size"],
          )
          layer_info.is_delete = layer["is_delete"]
          layers.append(layer_info)
      graph = Graph(graph_json["max_layer_num"], [], [], [])
      graph.layers = layers
      return graph
  
imports: import copy
  import json
  import random
  from enum import Enum, unique
label_desc: Use image node_id 2 for calling a global function with example usage: graph_loads(graph_json) and returns: graph