code: def load_images(self, filepaths):
          '''Load in image files from list of paths.
  
          Parameters
          ----------
  
          filepaths : List[str]
              List of file paths of images to be loaded.
  
          Returns
          -------
          images : array-like shape (n_images, n_colors, image_width, image_height)
              Images normalized to have pixel data range [0,1].
  
          '''
          def read(fname):
              im = Image.open(fname)
              im = np.float32(im)
              return im/255.
          x_all = np.array([read(fname) for fname in tqdm.tqdm(filepaths)])
          x_all = x_all.astype('float32')
          if self.mode == 'convolution':
              x_all = x_all.transpose(0, 3, 1, 2)
          print("Image Files Loaded!")
          return x_alf load_images(self, filepaths):
          '''Load in image files from list of paths.
  
          Parameters
          ----------
  
          filepaths : List[str]
              List of file paths of images to be loaded.
  
          Returns
          -------
          images : array-like shape (n_images, n_colors, image_width, image_height)
              Images normalized to have pixel data range [0,1].
  
          '''
          def read(fname):
              im = Image.open(fname)
              im = np.float32(im)
              return im/255.
          x_all = np.array([read(fname) for fname in tqdm.tqdm(filepaths)])
          x_all = x_all.astype('float32')
          if self.mode == 'convolution':
              x_all = x_all.transpose(0, 3, 1, 2)
          print("Image Files Loaded!")
          return x_all
docs: Load in image files from list of paths.
  
          Parameters
          ----------
  
          filepaths : List[str]
              List of file paths of images to be loaded.
  
          Returns
          -------
          images : array-like shape (n_images, n_colors, image_width, image_height)
              Images normalized to have pixel data range [0,1].