code: def test_sleep_physionet_temazepam(physionet_tmpdir, fake_retrieve):
      """Test Sleep Physionet URL handling."""
      paths = temazepam.fetch_data(subjects=[0], path=physionet_tmpdir)
      assert _keep_basename_only(paths[0]) == [
          "ST7011J0-PSG.edf",
          "ST7011JP-Hypnogram.edf",
      ]
  
      EXPECTED_CALLS = (
          {
              "name": "ST7011J0-PSG.edf",
              "hash": "b9d11484126ebff1884034396d6a20c62c0ef48d",
          },
          {
              "name": "ST7011JP-Hypnogram.edf",
              "hash": "ff28e5e01296cefed49ae0c27cfb3ebc42e710bf",
          },
      )
      base_path = temazepam.data_path(path=physionet_tmpdir)
      _check_mocked_function_calls(
          fake_retrieve, EXPECTED_CALLS, base_path
      )
  
      with pytest.raises(
          ValueError, match="This dataset contains subjects 0 to 21"
      ):
          paths = temazepam.fetch_data(
              subjects=[22], path=physionet_tmpdir
          )
  
file_path: mne-python/mne/datasets/sleep_physionet/tests/test_physionet.py
imports: from pathlib import Path
  import pytest
  from mne.datasets.sleep_physionet import age, temazepam
  from mne.datasets.sleep_physionet._utils import AGE_SLEEP_RECORDS, TEMAZEPAM_SLEEP_RECORDS, _update_sleep_age_records, _update_sleep_temazepam_records
  from mne.utils import requires_good_network
label_desc: Use image node_id 11 for calling a global function with example usage: test_sleep_physionet_temazepam(physionet_tmpdir, fake_retrieve) without return types