<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def analysis(self, analysis_id: int) -> models.Analysis: """Get a single analysis."""

        return self.Analysis.query.get(analysis_id)