code: def test_log_loss_from_logits_with_sample_weights(self):
      logits = np.array([[1, 2, 0, -1], [1, 2, 0, -1], [-1, 3, 0, 0]])
      labels = np.array([0, 3, 1])
      sample_weight = np.array([1.0, 0.0, 0.5])
      expected_loss = np.array([1.4401897, 0.0, 0.05572139])
  
      loss = utils.log_loss(
          labels, logits, sample_weight, from_logits=True
      )
      np.testing.assert_allclose(expected_loss, loss, atol=1e-7)
  
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 5 for calling the TestLogLoss obj's underlying member method code with example usage: obj.test_log_loss_from_logits_with_sample_weights() without return types