code: def test_log_loss_binary_from_probs(self, label, expected_loss):
      pred = np.array([0.2, 0.7, 0.1, 0.99, 0.002, 0.008])
      y = np.full(pred.shape[0], label)
      loss = utils.log_loss(y, pred)
      np.testing.assert_allclose(expected_loss, loss, atol=1e-7)
      loss = utils.log_loss(y, pred.reshape(-1, 1))
      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 6 for calling the TestLogLoss obj's underlying member method code with example usage: obj.test_log_loss_binary_from_probs(label, expected_loss) without return types