code: def test_auc_basic(self):
      # Arrange
      # Example from p.864
      # https://ccrma.stanford.edu/workshops/mir2009/references/ROCintro.pdf
      y = turicreate.SArray(
          [1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0]
      )
      yhat = turicreate.SArray(
          [
              0.9,
              0.8,
              0.7,
              0.6,
              0.55,
              0.54,
              0.53,
              0.52,
              0.51,
              0.505,
              0.4,
              0.39,
              0.38,
              0.37,
              0.36,
              0.35,
              0.34,
              0.33,
              0.30,
              0.1,
          ]
      )
  
      scikit_auc = roc_auc_score(list(y), list(yhat))
  
      # Act
      glc_int_auc = turicreate.toolkits.evaluation.auc(y, yhat)
      glc_str_auc = turicreate.toolkits.evaluation.auc(
          y.astype(str), yhat
      )
  
      # Assert
      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 24 for calling the MetricsTest obj's underlying member method code with example usage: obj.test_auc_basic() without return types