code: def _add_graph_level(graph, level, parent_ids, names, scores, normalized_scores,
                       include_pad):
      
      for i, parent_id in enumerate(parent_ids):
          if not include_pad and names[i] == PAD_TOKEN:
              continue
          new_node = (level, i)
          parent_node = (level - 1, parent_id)
          raw_score = '%.3f' % float(scores[i]) if scores[i] is not None else '-inf'
          norm_score = '%.3f' % float(normalized_scores[i]) if normalized_scores[i] is not None else '-inf'
  
          graph.add_node(new_node)
          graph.node[new_node]["name"] = names[i]
          graph.node[new_node]["score"] = "[RAW] {}".format(raw_score)
          graph.node[new_node]["norm_score"] = "[NORM] {}".format(norm_score)
          graph.node[new_node]["size"] = 100
          # Add an edge to the parent
          graph.add_edge(parent_node, new_node)
docs: Adds a level to the passed graph