def get_variable_by_code(self, variable_code):
        try:
            return self._edit_session.query(Variable).filter_by(code=variable_code).first()
        except:
            return None
Writes collected data to a file.
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.get_variable_by_code--crossover with--dataset/ETHPy150Open openelections/openelections-core/openelex/base/bake.py/BaseBaker.write