code: def test_linkcode_resolve():
      """Test linkcode resolving."""
      ex = "#L"
      url = linkcode_resolve(
          "py", dict(module="mne", fullname="Epochs")
      )
      assert "/mne/epochs.py" + ex in url
      url = linkcode_resolve(
          "py", dict(module="mne", fullname="compute_covariance")
      )
      assert "/mne/cov.py" + ex in url
      url = linkcode_resolve(
          "py", dict(module="mne", fullname="convert_forward_solution")
      )
      assert "/mne/forward/forward.py" + ex in url
      url = linkcode_resolve(
          "py", dict(module="mne", fullname="datasets.sample.data_path")
      )
      assert "/mne/datasets/sample/sample.py" + ex in url
  
imports: import webbrowser
  import pytest
  from mne import grade_to_tris, open_docs
  from mne.utils import catch_logging, copy_doc, copy_function_doc_to_method_doc, deprecated, deprecated_alias, legacy, linkcode_resolve
label_desc: Use image node_id 10 for calling a global function with example usage: test_linkcode_resolve() without return types