code: def _add_regularizer_to_loss_fn(loss_fn, regularizer_container):
      def new_loss_fn(output_batch, target_batch):
          return (
              loss_fn(output_batch, target_batch)
              + regularizer_container.get_value()
          )
  
      return new_loss_fn
  
file_path: pywick/pywick/modules/_utils.py
imports: import datetime
  import warnings
  import torch.nn.functional
  import torch.optim
  from ..metrics import Metric, CategoricalAccuracy, BinaryAccuracy
  from ..initializers import GeneralInitializer
label_desc: Use image node_id 1 for calling a global function with example usage: _add_regularizer_to_loss_fn(loss_fn, regularizer_container) and returns: new_loss_fn, unknown