def METHOD_NAME(node_slices, node_labels, max_nodes, num_classes = None):
    node_label_list = [] 
    for i, ind in enumerate(node_slices[1:]):
        if num_classes:
            graph_x = np.eye(num_classes)[np.asarray([int(x) for x in node_labels[node_slices[i]:ind]],dtype=np.int)]
        else:
            graph_x = anp.asarray([int(x) for x in node_labels[node_slices[i]:ind]],dtype=np.int)
        if (len(graph_x) < max_nodes):
            pad = max_nodes - len(graph_x)
            graph_x = np.pad(graph_x, ((0,pad),(0,0)), 'constant')
            node_label_list.append(graph_x)
    return node_label_list 