title: How to load a custom image dataset as numpy.ndarray?
body: <p>Here, I am loading the MNIST dataset from keras and printing out the datatypes:</p>
  <pre><code>(train_images, _), (test_images, _) = tf.keras.datasets.mnist.load_data()
  print(type(train_images))
  print(type(test_images))
  </code></pre>
  <p>Instead of this, I want to load a custom dataset in a way to make it compatible with the rest of my code. How can I go about doing this?</p>