def read_footer(filename):
    with open(filename, 'rb') as fo:
        if not _check_header_magic_bytes(fo) or \
           not _check_footer_magic_bytes(fo):
            raise ParquetFormatException("{0} is not a valid parquet file "
                                         "(missing magic bytes)"
                                         .format(filename))
        return _read_footer(fo)
Test Counter replacement
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/parquet-python/parquet/__init__.py/read_footer--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_fixes.py/test_counter