def test_save_load(self):
        with io.BytesIO() as output:
            self.sim_index.save(output)
            output.seek(0)
            loaded_sim_index = MemorySimIndex.load(output)
        self.sim_index = loaded_sim_index
        self.test_query_simple_scorer()  # make sure test_query() still works
Test save()/load() functionality
dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/test/sim_index_test.py/MemorySimIndexTest.test_save_load