def METHOD_NAME(cell_type, alphas):
    n_inputs = 2
    start_idx = 0
    end_idx = 2
    for i, (op, input_node) in enumerate(cell_type):
        if i % 2 == 0:
            alphas_subset = alphas[start_idx:end_idx]
            n_inputs += 1
            start_idx = end_idx
            end_idx += n_inputs
        alphas_subset[input_node][ops.index(op)] = 1