code: def test_log_loss_binary_from_logits(self, label, expected_loss):
      pred = np.array([-10, -5, 0.0, 5, 10])
      y = np.full(pred.shape[0], label)
      loss = utils.log_loss(y, pred, from_logits=True)
      np.testing.assert_allclose(expected_loss, loss, rtol=1e-2)
      loss = utils.log_loss(y, pred.reshape(-1, 1), from_logits=True)
      np.testing.assert_allclose(expected_loss, loss, rtol=1e-2)
  
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 7 for calling the TestLogLoss obj's underlying member method code with example usage: obj.test_log_loss_binary_from_logits(label, expected_loss) without return types