code: def print_model(analyse_result):
      """
      Print some information about model for users, we count numbers of ops and layers.
      """
      result = []
      # statistics
      op_counter = Counter()
      layer_counter = Counter()
      nodes = analyse_result["nodes"]
      total_ops = 0
      total_layers = 0
      for node in nodes:
          if node["name"] == "/":
              continue
          if not node["children_node"]:
              op_counter[node["type"]] += 1
              total_ops += 1
          else:
              layer_counter[node["type"]] += 1
              total_layers += 1
  
      SPACING_SIZE = 2
      row_format_list = [""]
      header_sep_list = [""]
      line_length_list = [-SPACING_SIZE]
  
      def add_title(padding, text):
          left_length = padding - len(text)
          half = left_length // 2
          return "-" * half + text + "-" * (left_length - half)
  
      def add_column(padding, text_dir="<"):
          row_format_list[0] += (
              "{: "
              + text_dir
              + str(padding)
              + "}"
              + (" " * SPACING_SIZE)
          )
          header_sep_list[0] += "-" * padding + (" " * SPACING_SIZE)
          line_length_list[0] += padding + SPACING_SIZE
  
      def append(s):
          result.append(s)
          result.append("\n")
  
      headers = ["Name", "Type", "Count"]
      column_width = 20
      for _ in headers:
          add_column(column_width)
  
      row_format = row_format_list[0]
      header_sep = header_sep_list[0]
      line_length = line_length_list[0]
  
      # construct table string
      append(add_title(line_length, "Graph Summary"))
      append(
          "total operators: {}\ttotal layers:{}".format(
              total_ops, total_layers
          )
      )
      append(header_sep)
      append(row_format.format(*headers))
      append(header_sep)
      for op_type, count in op_counter.items():
          row_values = [op_type, "operator", count]
          append(row_format.format(*row_values))
      for layer_type, count in layer_counter.items():
          row_values = [layer_type, "layer", count]
          append(row_format.format(*row_values))
      append("-" * line_length)
      print("".join(result))
  
imports: from collections import Counter
  from collections import deque
label_desc: Use image node_id 5 for calling a global function with example usage: print_model(analyse_result) and returns: unknown