def get_variable_by_id(self, variable_id):
        try:
            return self._edit_session.query(Variable).filter_by(id=variable_id).first()
        except:
            return None
Return a mock patching the function with qualified name
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.get_variable_by_id--crossover with--dataset/ETHPy150Open python-openxml/python-docx/tests/unitutil/mock.py/function_mock