code: def graph_loads(graph_json):
      """
      Load graph
      """
      layers = []
      for layer in graph_json["layers"]:
          layer_info = Layer(
              layer["graph_type"],
              layer["input"],
              layer["output"],
              layer["size"],
              layer["hash_id"],
          )
          layer_info.is_delete = layer["is_delete"]
          _logger.debug("append layer {}".format(layer_info))
          layers.append(layer_info)
      graph = Graph(
          graph_json["max_layer_num"],
          graph_json["min_layer_num"],
          [],
          [],
          [],
      )
      graph.layers = layers
      _logger.debug("graph {} loaded".format(graph))
      return graph
  
imports: import copy
  import hashlib
  import logging
  import json
  import random
  from collections import deque
  from enum import Enum, unique
  from typing import Iterable
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: graph_loads(graph_json) and returns: graph