code: def test_unsupported_task_type(self):
      y_true = np.array([1.0, 1.0, 1.0, 0.0, 0.0, 0.0])
      y_pred = np.array(
          [
              [0.0, 1.0],
              [0.0, 1.0],
              [0.0, 1.0],
              [1.0, 0.0],
              [1.0, 0.0],
              [1.0, 0.0],
          ]
      )
      scorer = autosklearn.metrics.accuracy
  
      raised = False
      try:
          calculate_scores(y_true, y_pred, 6, scorer)
      except NotImplementedError:
          raised = True
      self.assertTrue(raised)
  
imports: import warnings
  import numpy
  import sklearn.metrics
  import autosklearn.metrics
  from autosklearn.constants import BINARY_CLASSIFICATION, REGRESSION
  from autosklearn.metrics import calculate_losses, calculate_scores, compute_single_metric
  import pytest
  import unittest
label_desc: Use image node_id 1 for calling the TestCalculateScore obj's underlying member method code with example usage: obj.test_unsupported_task_type() without return types