code: def test_restrict_forward_to_label_cps(tmp_path, use_cps):
      """Test for gh-11689."""
      label_lh = read_label(label_path / "Aud-lh.label")
      fwd = read_forward_solution(fname_meeg)
      convert_forward_solution(
          fwd,
          surf_ori=True,
          force_fixed=False,
          copy=False,
          use_cps=use_cps,
      )
      fwd = pick_types_forward(fwd, meg="mag")
      fwd_out = restrict_forward_to_label(fwd, label_lh)
      vert = fwd_out["src"][0]["vertno"][0]
  
      assert fwd["surf_ori"]
      assert not is_fixed_orient(fwd)
      idx = list(fwd["src"][0]["vertno"]).index(vert)
      assert idx == 126
      go1 = fwd["_orig_sol"][:, idx * 3 : idx * 3 + 3].copy()
      gs1 = fwd["sol"]["data"][:, idx * 3 : idx * 3 + 3].copy()
  
      assert fwd_out["surf_ori"]
      assert not is_fixed_orient(fwd_out)
      idx = list(fwd_out["src"][0]["vertno"]).index(vert)
      assert idx == 0
      go2 = fwd_out["_orig_sol"][:, idx * 3 : idx * 3 + 3].copy()
      gs2 = fwd_out["sol"]["data"][:, idx * 3 : idx * 3 + 3].copy()
      assert_allclose(go2, go1)
      assert_allclose(gs2, gs1)
  
      # should be a no-op
      convert_forward_solution(
          fwd_out,
          surf_ori=True,
          force_fixed=False,
          copy=False,
          use_cps=use_cps,
      )
      assert fwd_out["surf_ori"]
      assert not is_fixed_orient(fwd_out)
      assert list(fwd_out["src"][0]["vertno"]).index(vert) == 0
      go3 = fwd_out["_orig_sol"][:, idx * 3 : idx * 3 + 3].copy()
      gs3 = fwd_out["sol"]["data"][:, idx * 3 : idx * 3 + 3].copy()
      assert_allclose(go3, go1)
      assert_allclose(gs3, gs1)
  
imports: import gc
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from mne import SourceEstimate, VectorSourceEstimate, apply_forward, apply_forward_raw, average_forward_solutions, convert_forward_solution, pick_types_forward, read_evokeds, read_forward_solution, write_forward_solution
  from mne._fiff.pick import pick_channels_forward
  from mne.channels import equalize_channels
  from mne.datasets import testing
  from mne.forward import Forward, compute_depth_prior, compute_orient_prior, is_fixed_orient, restrict_forward_to_label, restrict_forward_to_stc
  from mne.io import read_info
  from mne.label import read_label
  from mne.utils import requires_mne, run_subprocess
label_desc: Use image node_id 7 for calling a global function with example usage: test_restrict_forward_to_label_cps(tmp_path, use_cps) without return types