<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare(self):
 """ does some basic validation """

        try:
            assert(type(self.sender) is Channel)
            assert(type(self.receiver) is Channel)
            return True
        except:
            return False