code: def test_compute_corr():
      """Test Anscombe's Quartett."""
      x = np.array([10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5])
      y = np.array(
          [
              [
                  8.04,
                  6.95,
                  7.58,
                  8.81,
                  8.33,
                  9.96,
                  7.24,
                  4.26,
                  10.84,
                  4.82,
                  5.68,
              ],
              [
                  9.14,
                  8.14,
                  8.74,
                  8.77,
                  9.26,
                  8.10,
                  6.13,
                  3.10,
                  9.13,
                  7.26,
                  4.74,
              ],
              [
                  7.46,
                  6.77,
                  12.74,
                  7.11,
                  7.81,
                  8.84,
                  6.08,
                  5.39,
                  8.15,
                  6.42,
                  5.73,
              ],
              [8, 8, 8, 8, 8, 8, 8, 19, 8, 8, 8],
              [
                  6.58,
                  5.76,
                  7.71,
                  8.84,
                  8.47,
                  7.04,
                  5.25,
                  12.50,
                  5.56,
                  7.91,
                  6.89,
              ],
          ]
      )
  
      r = compute_corr(x, y.T)
      r2 = np.array([np.corrcoef(x, y[i])[0, 1] for i in range(len(y))])
      assert_allclose(r, r2)
      pytest.raises(ValueError, compute_corr, [1, 2], [])
  
imports: from copy import deepcopy
  from datetime import datetime, timezone
  from io import StringIO
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from scipy import sparse
  from mne import pick_types, read_cov, read_evokeds
  from mne._fiff.pick import _picks_by_type
  from mne.epochs import make_fixed_length_epochs
  from mne.io import read_raw_fif
  from mne.time_frequency import tfr_morlet
  from mne.utils import _PCA, _apply_scaling_array, _apply_scaling_cov, _array_equal_nan, _cal_to_julian, _custom_lru_cache, _dt_to_julian, _freq_mask, _get_inst_data, _julian_to_cal, _julian_to_dt, _reg_pinv, _ReuseCycle, _time_mask, _undo_scaling_array, _undo_scaling_cov, compute_corr, create_slices, grand_average, hashfunc, numerics, object_diff, object_hash, object_size, random_permutation, sum_squared
  from mne.utils.numerics import _LRU_CACHE_MAXSIZES, _LRU_CACHES
label_desc: Use image node_id 4 for calling a global function with example usage: test_compute_corr() without return types