def METHOD_NAME(self):
    """
    Writes standby mux state to APP DB for all mux interfaces
    """
    if not self.is_dualtor:
        # If not running on a dual ToR system, take no action
        return
    if self.is_warmrestart and self.is_shutdwon:
        # If in warmrestart context, take no action
        logger.log_warning("Skip setting mux state due to ongoing warmrestart.")
        return
    modes = self.get_all_mux_intfs_modes()
    if self.wait_for_tunnel():
        logger.log_warning("Applying state to interfaces {}".format(modes))
        producer_state_table = ProducerStateTable(self.appl_db, 'MUX_CABLE_TABLE')
        for intf, state in modes.items():
            fvs = create_fvs(state=state)
            producer_state_table.set(intf, fvs)
    else:
        logger.log_error("Timed out waiting for tunnel {}, mux state will not be written".format(self.tunnel_name))