title: Saving image list in a dir
body: <pre><code>X_image_train = []
  for fname in os.listdir(images_dir):
      fpath = os.path.join(images_dir, fname)
      im = Image.open(fpath)
      im_resized = im.resize(dim)
      X_image_train.append(im_resized)
  </code></pre>
  <p>I want to save the above X_image_train list as dir in my laptop. How can I do that?</p>