code: def test_download_original_images_along_resamp_images_if_previously_downloaded(
      tmp_path,
  ):
      collections, _ = _get_neurovault_data()
  
      sample_collection = collections.iloc[0]
      sample_collection_id = sample_collection["id"]
  
      # Fetch non-resampled images
      data = neurovault.fetch_neurovault_ids(
          collection_ids=[sample_collection_id],
          data_dir=tmp_path,
          resample=True,
      )
  
      # Check that only the resampled version is here
      _check_resampled_version_is_here(data)
      _check_original_version_is_not_here(data)
  
      # Get the time of the last access to the resampled data
      access_time_resampled = os.path.getatime(
          data["images_meta"][0]["resampled_absolute_path"]
      )
  
      # Download original data
      data_orig = neurovault.fetch_neurovault_ids(
          collection_ids=[sample_collection_id],
          data_dir=tmp_path,
          resample=False,
      )
  
      # Get the time of the last access to one of the original files
      # (which should be download time)
      access_time = os.path.getatime(
          data_orig["images_meta"][0]["absolute_path"]
      )
  
      # Check that the last access to the original data is after the access
      # to the resampled data
      assert access_time - access_time_resampled > 0
  
      # Check that the original version is now here
      # (previous test should have failed anyway if not)
      _check_original_version_is_here(data_orig)
  
      _check_no_affine_match_neurovault_affine(data_orig)
  
imports: import hashlib
  import json
  import os
  import re
  import stat
  from urllib import parse
  import numpy
  import pandas
  import pytest
  import requests
  from nilearn._utils.data_gen import generate_fake_fmri
  from nilearn.conftest import _rng
  from nilearn.datasets import neurovault
  from nilearn.image import load_img
label_desc: Use image node_id 44 for calling a global function with example usage: test_download_original_images_along_resamp_images_if_previously_downloaded(tmp_path) without return types