<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sendToViewChanger(self, msg, frm):
 """ Send the message to the intended view changer. :param msg: the message to send :param frm: the name of the node which sent this `msg` """

        if (isinstance(msg, InstanceChange) or
                self.msgHasAcceptableViewNo(msg, frm)):
            logger.debug("{} sending message to view changer: {}".
                         format(self, (msg, frm)))
            self.msgsToViewChanger.append((msg, frm))