code: def test_imagenet():
      with pytest.warns() as warn:
          fetch_imagenet()
      assert "The Imagenet API is no longer publicly available" in str(
          warn[0].message
      )
  
file_path: alibi/alibi/datasets/tests/test_datasets.py
imports: import numpy
  import pytest
  from alibi.datasets import fetch_adult, fetch_fashion_mnist, fetch_imagenet, fetch_imagenet_10, fetch_movie_sentiment, load_cats
  from requests import RequestException
label_desc: Use image node_id 5 for calling a global function with example usage: test_imagenet() without return types