<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def imag(self):
 """Return imaginary part of a matrix."""

        return matrix(self.tt.imag(), n=self.n, m=self.m)