def check_headers(oe_file):
    """Check that length, sampling rate, buffer and block sizes of a list of open-ephys ContinuousFiles are
    identical and return them in that order."""
    # Check oe_file make sense (same size, same sampling rate, etc.
    num_records = [f.num_records for f in oe_file]
    sampling_rates = [f.header['sampleRate'] for f in oe_file]
    buffer_sizes = [f.header['bufferSize'] for f in oe_file]
    block_sizes = [f.header['blockLength'] for f in oe_file]

    assert len(set(num_records)) == 1
    assert len(set(sampling_rates)) == 1
    assert len(set(buffer_sizes)) == 1
    assert len(set(block_sizes)) == 1

    return num_records[0], sampling_rates[0], buffer_sizes[0], block_sizes[0]