def METHOD_NAME(spec):
    matrix, ops = spec["matrix"], spec["ops"]
    # offset ops list by one, add input and output to ops list
    ops = [OPS_INCLUSIVE.index(op) for op in ops]
    dic = {
        "num_vertices": 7,
        "adjacency": matrix,
        "operations": ops,
        "mask": np.array([i < 7 for i in range(7)], dtype=np.float32),
        "val_acc": 0.0,
    }
    return dic