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

def detail(self, detail=None, ret_r=False):
        '''code's detail'''
        if detail or ret_r:
            self._detail = detail
            return self
        return self._detail