code: def test_phantom(tmp_path, monkeypatch):
      """Test phantom data downloading."""
      # The Otaniemi file is only ~6MB, so in principle maybe we could test
      # an actual download here. But it doesn't seem worth it given that
      # CircleCI will at least test the VectorView one, and this file should
      # not change often.
      monkeypatch.setattr(
          phantom_base,
          "_manifest_check_download",
          partial(_fake_mcd, name="phantom_otaniemi", fake_files=True),
      )
      fetch_phantom("otaniemi", subjects_dir=tmp_path)
      assert op.isfile(tmp_path / "phantom_otaniemi" / "mri" / "T1.mgz")
  
imports: import os
  import re
  import shutil
  import zipfile
  from functools import partial
  from os import path
  import pooch
  import pytest
  from mne import datasets, read_labels_from_annot, write_labels_to_annot
  from mne.datasets import fetch_dataset, fetch_infant_template, fetch_phantom, testing
  from mne.datasets._fsaverage.base import _set_montage_coreg_path
  from mne.datasets._infant import base
  from mne.datasets._phantom import base
  from mne.datasets.utils import _manifest_check_download
  from mne.utils import ArgvSetter, _pl, catch_logging, get_subjects_dir, hashfunc, requires_good_network, use_log_level
label_desc: Use image node_id 8 for calling a global function with example usage: test_phantom(tmp_path, monkeypatch) without return types