code: def test_temp_nilearn_home_autoused():
      home_dir = Path(os.path.expanduser("~"))
  
      assert home_dir.name.startswith("temp_nilearn_home")
  
      home_dir = Path.home()
  
      assert home_dir.name.startswith("temp_nilearn_home")
  
      home_dir = Path("~").expanduser()
  
      assert home_dir.name.startswith("temp_nilearn_home")
  
      nilearn_data = Path(os.environ.get("NILEARN_DATA"))
  
      assert nilearn_data.parent.name.startswith("temp_nilearn_home")
  
      nilearn_shared_data = Path(os.environ.get("NILEARN_SHARED_DATA"))
  
      assert nilearn_shared_data.parent.name.startswith(
          "temp_nilearn_home"
      )
  
file_path: nilearn/nilearn/datasets/tests/test_mocking_autoused.py
imports: import os
  from pathlib import Path
  from urllib import request
  import requests
label_desc: Use image node_id 3 for calling a global function with example usage: test_temp_nilearn_home_autoused() without return types