def load_sample_image(image_name):
 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]

def load_sample_image ( image_name ) : 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 ]
load the numpy array of a single sample image parameters image_name : {china .