code: def test_auc_binary(self):
      # Arrange
      rs = np.random.RandomState(42)
      n = 100
      y = turicreate.SArray(rs.randint(2, size=n))
      yhat = turicreate.SArray(rs.uniform(size=n))
  
      # Act & Assert
      scikit_auc = roc_auc_score(list(y), list(yhat), average="macro")
      glc_int_auc = turicreate.toolkits.evaluation.auc(y, yhat, "macro")
      glc_str_auc = turicreate.toolkits.evaluation.auc(
          y.astype(str), yhat, "macro"
      )
      self.assertAlmostEqual(glc_int_auc, scikit_auc)
      self.assertAlmostEqual(glc_str_auc, scikit_auc)
  
      # Act & Assert
      scikit_auc = roc_auc_score(list(y), list(yhat), average=None)
      glc_int_auc = turicreate.toolkits.evaluation.auc(
          y, yhat, average=None
      )
      glc_str_auc = turicreate.toolkits.evaluation.auc(
          y.astype(str), yhat, average=None
      )
      self.assertAlmostEqual(glc_int_auc, scikit_auc)
      self.assertAlmostEqual(glc_str_auc, scikit_auc)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import turicreate
  from turicreate.toolkits._main import ToolkitError
  import math
  from numpy import inf
  import numpy
label_desc: Use image node_id 25 for calling the MetricsTest obj's underlying member method code with example usage: obj.test_auc_binary() without return types