code: def test_init():
      calib_layer = CalibrationLayer(pos_size=5, positive_base_rate=0.5)
  
      calib_layer.build((10, 10))
      assert (
          calib_layer.pos_size == calib_layer.neg_size
      ), "CalibrationLayer: pos_size and neg_size must be same if calibrating with corruptions"
      assert (
          calib_layer.calib_w.numpy() == 0
      ), "CalibrationLayer: w not initialized correctly"
      assert (
          calib_layer.calib_b.numpy() == 0
      ), "CalibrationLayer: b not initialized correctly"
  
      calib_layer = CalibrationLayer(
          pos_size=5, neg_size=5, calib_w=10, calib_b=10
      )
  
      calib_layer.build((10, 10))
      assert (
          calib_layer.calib_w.numpy() == 10
      ), "CalibrationLayer (passed w): w not initialized correctly"
      assert (
          calib_layer.calib_b.numpy() == 10
      ), "CalibrationLayer (passed b): b not initialized correctly"
      assert (
          calib_layer.positive_base_rate == 0.5
      ), "Incorrect positive base rate"
  
      with pytest.raises(
          ValueError,
          match="Positive_base_rate must be a value between 0 and 1.",
      ):
          calib_layer = CalibrationLayer(
              pos_size=5, positive_base_rate=1.1
          )
  
      with pytest.raises(
          AssertionError, match="Positive size must be > 0."
      ):
          calib_layer = CalibrationLayer(pos_size=0)
  
imports: from ampligraph.latent_features.layers.calibration import CalibrationLayer
  import pytest
  import tensorflow
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_init() without return types