          self._set_globals()
          self._set_loss()
          self._defaults_from_plugin(os.path.dirname(__file__))
  
      def _set_globals(self):
          """ Set the global options for training """
          logger.debug("Setting global config")
          section = "global"
          self.add_section(title=section,
                           info="Options that apply to all models" + ADDITIONAL_INFO)
 
</s> remove     def set_defaults(self):
 </s> add     def set_defaults(self) -> None: </s> remove         """
 </s> add         """  # noqa
        # pylint:enable=line-too-long </s> remove         if self._config["loss_function"] in self._uses_l2_reg and self._config["l2_reg_term"] > 0:
            logger.debug("Adding L2 Regularization for Structural Loss")
            loss_wrapper.add_loss(self._loss_dict["mse"],
                                  weight=self._config["l2_reg_term"] / 100.0,
                                  mask_channel=mask_channel)
 </s> add         logger.debug("Adding loss function: %s, weight: %s", loss_function, weight)
        loss_wrapper.add_loss(loss_function,
                              weight=weight,
                              mask_channel=self._mask_channels[0])

        channel_idx = 1
        for section in ("eye_multiplier", "mouth_multiplier"):
            mask_channel = self._mask_channels[channel_idx]
            multiplier = self._config[section] * 1.
            if multiplier > 1.:
                logger.debug("Adding section loss %s: %s", section, multiplier)
                loss_wrapper.add_loss(loss_function,
                                      weight=weight * multiplier,
                                      mask_channel=mask_channel)
            channel_idx += 1 </s> remove     def _add_l2_regularization_term(self, loss_wrapper, mask_channel):
        """ Check if an L2 Regularization term should be added and add to the loss function
        wrapper.
 </s> add     def _add_face_loss_function(self,
                                loss_wrapper: losses.LossWrapper,
                                loss_function: Callable,
                                weight: float) -> None:
        """ Add the given face loss function at the given weight and apply any mouth and eye
        multipliers </s> remove         mask_channel: int
            The channel that holds the mask in `y_true`, if a mask is used for the loss.
            `-1` if the input is not masked
 </s> add         loss_func: :class:`keras.losses.Loss`
            The loss function to add to the loss wrapper
        weight: float
            The amount of weight to apply to the given loss function
    def _set_globals(self) -> None:
          self._set_globals()
          self._set_loss()
          self._defaults_from_plugin(os.path.dirname(__file__))
  
    def _set_globals(self) -> None:
          """ Set the global options for training """
          logger.debug("Setting global config")
          section = "global"
          self.add_section(title=section,
                           info="Options that apply to all models" + ADDITIONAL_INFO)
keep keep keep keep replace keep keep keep keep keep
 Training updates
  - Add multiple selected loss functions
  - Unlock loss as a model configuration
  - Phaze-A remove encoder scaling max xap 
plugins/train/_config.py