code: def test_load_niimg(img1, tmp_path):
      filename = testing.write_imgs_to_path(
          img1, file_path=tmp_path, create_files=True
      )
      filename = Path(filename)
      load_niimg(filename)
  
file_path: nilearn/nilearn/_utils/tests/test_niimg.py
imports: from pathlib import Path
  import joblib
  import nibabel
  import numpy
  import pytest
  from nibabel import Nifti1Header, Nifti1Image
  from nilearn._utils import load_niimg, niimg, testing
  from nilearn.image import get_data, new_img_like
label_desc: Use image node_id 5 for calling a global function with example usage: test_load_niimg(img1, tmp_path) without return types