code: def check_return_X_y(bunch, dataset_func):
      X_y_tuple = dataset_func(return_X_y=True)
      assert isinstance(X_y_tuple, tuple)
      assert X_y_tuple[0].shape == bunch.data.shape
      assert X_y_tuple[1].shape == bunch.target.shape
  
file_path: scikit-learn/sklearn/datasets/tests/test_common.py
imports: import inspect
  import os
  import numpy
  import pytest
  import sklearn.datasets
label_desc: Use image node_id 3 for calling a global function with example usage: check_return_X_y(bunch, dataset_func) without return types