code: def _test_regularizer(model, reg_model, x, y):
      def zero_loss(gt, pr):
          return pr * 0
  
      model.compile("Adam", loss=zero_loss, metrics=["binary_accuracy"])
      reg_model.compile(
          "Adam", loss=zero_loss, metrics=["binary_accuracy"]
      )
  
      loss_1, _ = model.test_on_batch(x, y)
      loss_2, _ = reg_model.test_on_batch(x, y)
  
      assert loss_1 == 0
      assert loss_2 > 0
  
      keras.backend.clear_session()
  
file_path: segmentation_models/tests/test_utils.py
imports: import pytest
  import numpy
  import segmentation_models
  from segmentation_models.utils import set_regularization
  from segmentation_models import Unet
label_desc: Use image node_id 1 for calling a global function with example usage: _test_regularizer(model, reg_model, x, y) and returns: unknown