def required_index(a):
    """
    Helper function to take a list of index lists and return whether it needs to be included as an index in demultiplexing.
    """
    return len(set(tuple(a_i) for a_i in a)) != 1