code: def build_class_directories(dir):
      dir_id = 0
      class_dir = os.path.join(dir, str(dir_id))
      if not os.path.exists(class_dir):
          os.mkdir(class_dir)
      for i in range(1, 1361):
          fname = "image_" + ("%.4i" % i) + ".jpg"
          os.rename(
              os.path.join(dir, fname), os.path.join(class_dir, fname)
          )
          if i % 80 == 0 and dir_id < 16:
              dir_id += 1
              class_dir = os.path.join(dir, str(dir_id))
              os.mkdir(class_dir)
  
file_path: tflearn/tflearn/datasets/oxflower17.py
imports: from __future__ import absolute_import, print_function
  import os
  import sys
  from six.moves import urllib
  import tarfile
  import numpy
  import pickle
  from ..data_utils import *
label_desc: Use image node_id 4 for calling a global function with example usage: build_class_directories(dir) without return types