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

        self.client.publish(self.keys.external,
                            '{}: {}'.format(self.resource, text))