class_docstr: L1 regularized loss
class_docstr_tok: ["L1","regularized","loss"]
code: def regularized_all_param(self, reg_loss_function):
      for (
          model_param_name,
          model_param_value,
      ) in self.model.named_parameters():
          if (
              model_param_name.endswith("weight")
              and "1.weight" not in model_param_name
              and "bn" not in model_param_name
          ):
              reg_loss_function += (
                  self.lambda_reg
                  * L1Regularizer.__add_l1(var=model_param_value)
              )
      return reg_loss_function
  
imports: from enum import Enum
label_desc: Use image node_id 3 for calling the L1Regularizer obj's underlying member method code with example usage: obj.regularized_all_param(reg_loss_function) and returns: reg_loss_function