code: def test_extract_patch_same_size_image(downsampled_face):
      face = downsampled_face
      # Request patches of the same size as image
      # Should return just the single patch a.k.a. the image
      patches = extract_patches_2d(face, face.shape, max_patches=2)
      assert patches.shape[0] == 1
  
imports: import numpy
  import pytest
  from scipy import ndimage
  from scipy.sparse.csgraph import connected_components
  from sklearn.feature_extraction.image import PatchExtractor, _extract_patches, extract_patches_2d, grid_to_graph, img_to_graph, reconstruct_from_patches_2d
label_desc: Use image node_id 14 for calling a global function with example usage: test_extract_patch_same_size_image(downsampled_face) without return types