chunk_content: 
  
  
  def handle_grayscale_image(image):
      np_image = np.array(image)
      if np_image.ndim == 2:
          tiled_image = np.tile(np.expand_dims(np_image, -1), 3)
          return Image.fromarray(tiled_image)
      else:
          return Image.fromarray(np_image)
  Finally, combine everything in two functions that you’ll use to transform training and validation data. The two functions
  are similar except data augmentation is applied only to the training dat