<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def user(self):
 """Creates a User object when requested."""

        try:
            return self._user
        except AttributeError:
            self._user = MatrixUser(self.mxid, self.Api(identity=self.mxid))
            return self._user