<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_evidence_by_hash(self, evidence_hash: str) -> Optional[Evidence]: """Look up an evidence by its hash."""

        return self.session.query(Evidence).filter(Evidence.sha512 == evidence_hash).one_or_none()