code: def test_multilabel_bce_loss_with_sample_weights(self):
      label = np.array([[0, 1, 0], [1, 1, 0]])
      pred = np.array([[-1.2, -0.3, 2.1], [0.0, 0.5, 1.5]])
      sample_weight = np.array([1.0, 0.5])
      expected_loss = np.array(
          [
              [0.26328245, 0.85435522, 2.21551943],
              [0.34657358, 0.23703848, 0.85070661],
          ]
      )
      loss = utils.multilabel_bce_loss(
          label, pred, sample_weight=sample_weight, from_logits=True
      )
      np.testing.assert_allclose(loss, expected_loss, atol=1e-6)
  
imports: from unittest import mock
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from tensorflow_privacy.privacy.privacy_tests import utils
label_desc: Use image node_id 2 for calling the TestMultilabelBCELoss obj's underlying member method code with example usage: obj.test_multilabel_bce_loss_with_sample_weights() without return types