code: def load_data(data_dir="mnist/", one_hot=False):
      mnist = read_data_sets(data_dir, one_hot=one_hot)
      return (
          mnist.train.images,
          mnist.train.labels,
          mnist.test.images,
          mnist.test.labels,
      )
  
file_path: tflearn/tflearn/datasets/mnist.py
imports: from __future__ import print_function
  import gzip
  import os
  from six.moves import urllib
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: load_data(data_dir, one_hot) and returns: mnist,  mnist,  mnist,  mnist