code: def test_get_batch_error(tmp_path):
      with pytest.raises(requests.RequestException):
          neurovault._get_batch("http://")
      with pytest.raises(ValueError):
          neurovault._get_batch(
              f"file://{str(tmp_path / 'test_nv.txt')}",
          )
  
      no_results_url = (
          "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/"
          "esearch.fcgi?db=pmc&retmode=json&term=fmri"
      )
  
      with pytest.raises(ValueError):
          neurovault._get_batch(no_results_url)
  
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 13 for calling a global function with example usage: test_get_batch_error(tmp_path) without return types