code: def test_auc_errors(setup):
      # Incompatible shapes
      with pytest.raises(ValueError):
          auc([0.0, 0.5, 1.0], [0.1, 0.2])
  
      # Too few x values
      with pytest.raises(ValueError):
          auc([0.0], [0.1])
  
      # x is not in order
      x = [2, 1, 3, 4]
      y = [5, 6, 7, 8]
      error_message = (
          f"x is neither increasing nor decreasing : {np.array(x)}"
      )
      with pytest.raises(ValueError, match=re.escape(error_message)):
          auc(x, y)
  
imports: import re
  import warnings
  import numpy
  import pandas
  import pytest
  from sklearn.metrics import roc_curve, auc, accuracy_score
  from sklearn.metrics.tests.test_ranking import make_prediction, _auc
  from sklearn.exceptions import UndefinedMetricWarning
  from sklearn.utils import check_random_state
  from sklearn.utils._testing import assert_almost_equal, assert_array_almost_equal
  from ....None import dataframe
  from ....None import tensor
  from ...utils.extmath import softmax
  from ..None import roc_curve, auc, accuracy_score, roc_auc_score
label_desc: Use image node_id 13 for calling a global function with example usage: test_auc_errors(setup) without return types