code: def test_roc_auc_score():
      """Test simulation metrics."""
      pytest.importorskip("sklearn")
      src = read_source_spaces(src_fname)
      vert1 = [src[0]["vertno"][0:4], []]
      vert2 = [src[0]["vertno"][0:4], []]
      data1 = np.array([[0.0, 0.0, 1, 1]]).T
      data2 = np.array([[0.1, -0.4, 0.35, 0.8]]).T
      stc_true = SourceEstimate(
          data1, vert1, 0, 0.002, subject="sample"
      )
      stc_est = SourceEstimate(data2, vert2, 0, 0.002, subject="sample")
  
      score = roc_auc_score(stc_true, stc_est, per_sample=False)
      assert_allclose(score, 0.75)
  
file_path: mne-python/mne/simulation/metrics/tests/test_metrics.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  from scipy.linalg import norm
  from mne import SourceEstimate, read_source_spaces
  from mne.datasets import testing
  from mne.simulation import metrics
  from mne.simulation.metrics import cosine_score, f1_score, peak_position_error, precision_score, recall_score, region_localization_error, roc_auc_score, spatial_deviation_error
label_desc: Use image node_id 7 for calling a global function with example usage: test_roc_auc_score() without return types