def METHOD_NAME(spec):
    """
    Input:
    a list of categorical ops starting from 0
    """
    matrix, ops = spec["matrix"], spec["ops"]
    op_map = [INPUT, *OPS, OUTPUT]
    ops_onehot = np.array(
        [[i == op_map.index(op) for i in range(len(op_map))] for op in ops],
        dtype=np.float32,
    )
    matrix = add_global_node(matrix, True)
    ops_onehot = add_global_node(ops_onehot, False)
    matrix = np.array(matrix, dtype=np.float32)
    ops_onehot = np.array(ops_onehot, dtype=np.float32)
    dic = {"adjacency": matrix, "operations": ops_onehot, "val_acc": 0.0}
    return dic