code: def test_infant(tmp_path, monkeypatch):
      """Test fetch_infant_template."""
      monkeypatch.setattr(
          infant_base, "_manifest_check_download", _fake_mcd
      )
      fetch_infant_template("12mo", subjects_dir=tmp_path)
      with pytest.raises(ValueError, match="Invalid value for"):
          fetch_infant_template("0mo", subjects_dir=tmp_path)
  
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 7 for calling a global function with example usage: test_infant(tmp_path, monkeypatch) without return types