<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def msg(self, msg=None, ret_r=False):
        '''code's message'''
        if msg or ret_r:
            self._msg = msg
            return self
        return self._msg