<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_queues(self, manager=None):
 """ Create the shared queues that will be used by alignak daemon process and this module process. But clear queues if they were already set before recreating new one. Note: If manager is None, then we are running the unit tests for the modules and we must create some queues for the external modules without a SyncManager :param manager: Manager() object :type manager: None | object :return: None """

        self.clear_queues(manager)
        # If no Manager() object, go with classic Queue()
        if not manager:
            self.from_q = Queue()
            self.to_q = Queue()
        else:
            self.from_q = manager.Queue()
            self.to_q = manager.Queue()