code: def get_mnist_dir():
      # This folder is baked into the docker image
      MNIST_DATA_DIR = "/data/mnist/"
  
      if os.path.isdir(MNIST_DATA_DIR) and os.path.isfile(
          os.path.join(MNIST_DATA_DIR, "mnist.bz2")
      ):
          return MNIST_DATA_DIR
  
      mnist_dir = tempfile.mkdtemp("_mnist_data")
      download_mnist_libsvm(mnist_dir)
      return mnist_dir
  
imports: import os
  import tempfile
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: get_mnist_dir() and returns: mnist_dir, MNIST_DATA_DIR