<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def publish(self):
 """ Mark an episode as published. """

        if self.published is False:
            self.published = True
        else:
            raise Warning(self.title + ' is already published.')