code: def test_log_loss_from_probs_2_classes(self, label, expected_losses):
      pred = np.array(
          [
              [0.01, 0.99],
              [0.1, 0.9],
              [0.25, 0.75],
              [0.5, 0.5],
              [0.75, 0.25],
              [0.9, 0.1],
              [0.99, 0.01],
          ]
      )
      y = np.full(pred.shape[0], label)
      loss = utils.log_loss(y, pred)
      np.testing.assert_allclose(loss, expected_losses, 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 1 for calling the TestLogLoss obj's underlying member method code with example usage: obj.test_log_loss_from_probs_2_classes(label, expected_losses) without return types