def get_unit_by_name(self, unit_name):
        try:
            return self._edit_session.query(Unit).filter_by(name=unit_name).first()
        except:
            return None
String method
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.get_unit_by_name--crossover with--dataset/ETHPy150Open reubano/pygogo/pygogo/utils.py/StructuredMessage.__str__