code: def test_probabilities_with_index_map(self):
      y = turicreate.SArray([0, 2, 3, 0])
      yhat = turicreate.SArray(
          [
              [0.9, 0.0, 0.0, 0.1],
              [0.8, 0.0, 0.1, 0.1],
              [0.1, 0.0, 0.1, 0.8],
              [0.1, 0.0, 0.1, 0.8],
          ]
      )
  
      # The evaluation toolkit must know that 1 is a possible class label, and
      # corresponds to index 1 in each probability vector.
      index_map = {i: i for i in range(4)}
  
      log_loss = turicreate.toolkits.evaluation.log_loss(
          y, yhat, index_map=index_map
      )
      auc = turicreate.toolkits.evaluation.auc(
          y, yhat, index_map=index_map
      )
      roc_curve = turicreate.toolkits.evaluation.roc_curve(
          y, yhat, index_map=index_map
      )
  
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 4 for calling the MetricsTest obj's underlying member method code with example usage: obj.test_probabilities_with_index_map() without return types