code: def load_sample_image(image_name):
      """Load the numpy array of a single sample image
  
      Parameters
      -----------
      image_name: {`china.jpg`, `flower.jpg`}
          The name of the sample image loaded
  
      Returns
      -------
      img: 3D array
          The image as a numpy array: height x width x color
  
      Examples
      ---------
  
      >>> from sklearn.datasets import load_sample_image
      >>> china = load_sample_image('china.jpg')   # doctest: +SKIP
      >>> china.dtype                              # doctest: +SKIP
      dtype('uint8')
      >>> china.shape                              # doctest: +SKIP
      (427, 640, 3)
      >>> flower = load_sample_image('flower.jpg') # doctest: +SKIP
      >>> flower.dtype                             # doctest: +SKIP
      dtype('uint8')
      >>> flower.shape                             # doctest: +SKIP
      (427, 640, 3)
      """
      images = load_sample_images()
      index = None
      for i, filename in enumerate(images.filenames):
          if filename.endswith(image_name):
              index = i
              break
      if index is None:
          raise AttributeError(
              "Cannot find sample image: %s" % image_name
          )
      return images.images[index]
  
imports: import os
  import csv
  import sys
  import shutil
  from os import environ
  from os.path import dirname
  from os.path import join
  from os.path import exists
  from os.path import expanduser
  from os.path import isdir
  from os.path import splitext
  from os import listdir
  from os import makedirs
  import numpy
  from ..utils import check_random_state
label_desc: Use image node_id 12 for calling a global function with example usage: load_sample_image(image_name) and returns: images