<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_text(self):
 """Render as plain text. """

        if self.text == '':
            return '::%s' % self.uri
        return '::%s [%s]' % (self.text, self.uri)