code: def train(directory):
      """tf.data.Dataset object for MNIST training data."""
      return dataset(
          directory,
          "train-images-idx3-ubyte",
          "train-labels-idx1-ubyte",
      )
  
file_path: mesh/examples/mnist_dataset.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gzip
  import os
  import shutil
  import tempfile
  import numpy
  from six.moves import urllib
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling a global function with example usage: train(directory) and returns: dataset