code: def get_dataset_file(dataset, default_dataset, origin):
      """Look for it as if it was a full path, if not, try local file,
      if not try in the data directory.
      Download dataset if it is not present
      """
      data_dir, data_file = os.path.split(dataset)
      if (not os.path.isfile(dataset)) and data_file == default_dataset:
          from six.moves import urllib
  
          print("Downloading data from %s" % origin)
          urllib.request.urlretrieve(origin, dataset)
  
      return dataset
  
file_path: tflearn/tflearn/datasets/imdb.py
imports: from __future__ import print_function
  import six.moves.cPickle
  import gzip
  import os
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: get_dataset_file(dataset, default_dataset, origin) and returns: dataset