code: def testSigmoidAccuracyOneHot(self):
      logits = np.array(
          [[-1.0, 1.0], [1.0, -1.0], [-1.0, 1.0], [1.0, -1.0]]
      )
      labels = np.array([[0, 1], [1, 0], [1, 0], [0, 1]])
      logits = np.expand_dims(np.expand_dims(logits, 1), 1)
      labels = np.expand_dims(np.expand_dims(labels, 1), 1)
  
      with self.test_session() as session:
          score, _ = metrics.sigmoid_accuracy_one_hot(logits, labels)
          session.run(tf.global_variables_initializer())
          session.run(tf.local_variables_initializer())
          s = session.run(score)
      self.assertEqual(s, 0.5)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.utils import metrics
  import tensorflow.compat.v1
label_desc: Use image node_id 15 for calling the MetricsTest obj's underlying member method code with example usage: obj.testSigmoidAccuracyOneHot() without return types