code: def test_cats(return_X_y, target_size):
      data = load_cats(target_size=target_size, return_X_y=return_X_y)
      if return_X_y:
          assert len(data) == 2
          X, y = data
      else:
          assert len(data) == 3
          X = data.data
          y = data.target
      assert len(X) == len(y)
      assert X.shape[1:] == target_size + (3,)
  
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 3 for calling a global function with example usage: test_cats(return_X_y, target_size) without return types