code: def test_load_sample_images():
      try:
          res = load_sample_images()
          assert len(res.images) == 2
          assert len(res.filenames) == 2
          images = res.images
  
          # assert is china image
          assert np.all(
              images[0][0, 0, :]
              == np.array([174, 201, 231], dtype=np.uint8)
          )
          # assert is flower image
          assert np.all(
              images[1][0, 0, :]
              == np.array([2, 19, 13], dtype=np.uint8)
          )
          assert res.DESCR
      except ImportError:
          warnings.warn(
              "Could not load sample images, PIL is not available."
          )
  
imports: import os
  import shutil
  import tempfile
  import warnings
  from functools import partial
  from importlib import resources
  from pathlib import Path
  from pickle import dumps, loads
  import numpy
  import pytest
  from sklearn.datasets import clear_data_home, get_data_home, load_breast_cancer, load_diabetes, load_digits, load_files, load_iris, load_linnerud, load_sample_image, load_sample_images, load_wine
  from sklearn.datasets._base import load_csv_data, load_gzip_compressed_csv_data
  from sklearn.datasets.tests.test_common import check_as_frame
  from sklearn.preprocessing import scale
  from sklearn.utils import Bunch
label_desc: Use image node_id 16 for calling a global function with example usage: test_load_sample_images() without return types