def store_fixture(self, fixture):
        global _dir_map

        path_components = self.layout.path_components_for(fixture)

        # Handle multiple versions
        version = 0
        index = self._file_index(path_components)
        if _dir_map in index:
            version = _dir_map[index] + 1
        if version:
            path_components[-1] += '_{}'.format(version)
        _dir_map[index] = version

        # Append file type to last component
        path_components[-1] += '.{}'.format(fixture.type)

        # Flush data
        fn = os.path.join(self.fixture_directory, *path_components)
        os.makedirs(os.path.dirname(fn), exist_ok=True)
        with open(fn, 'w') as fd:
            fd.write(fixture.payload)
dataset/ETHPy150Open janukobytsch/flask-autofixture/flask_autofixture/storage.py/FileStorage.store_fixture/swapped operands of `in`