code: def _get_data(ch_decim=1):
      """Read in data used in tests."""
      # Read evoked
      evoked = mne.read_evokeds(fname_ave, 0, baseline=(None, 0))
      evoked.info["bads"] = ["MEG 2443"]
      with evoked.info._unlock():
          evoked.info["lowpass"] = 16  # fake for decim
      evoked.decimate(12)
      evoked.crop(0.0, 0.3)
      picks = mne.pick_types(evoked.info, meg=True, eeg=False)
      picks = picks[::ch_decim]
      evoked.pick([evoked.ch_names[pick] for pick in picks])
      evoked.info.normalize_proj()
  
      noise_cov = mne.read_cov(fname_cov)
      noise_cov["projs"] = []
      noise_cov = regularize(
          noise_cov, evoked.info, rank="full", proj=False
      )
      return evoked, noise_cov
  
file_path: mne-python/mne/beamformer/tests/test_rap_music.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  from scipy import linalg
  import mne
  from mne.beamformer import rap_music, trap_music
  from mne.cov import regularize
  from mne.datasets import testing
  from mne.minimum_norm.tests.test_inverse import assert_var_exp_log
  from mne.utils import catch_logging
label_desc: Use image node_id 1 for calling a global function with example usage: _get_data(ch_decim) and returns: evoked,  noise_cov