def find_index_of_ts_op_tuple(ts_op_tuples, op_id):
    """Finds the index of the given operator id at the ts and op tuple list."""
    for i, ts_op_tuple in enumerate(ts_op_tuples):
        if ts_op_tuple.op_id == op_id:
            return i
    return -1