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