code: def _find_classes(dirs):
      classes = []
      for dir_ in dirs:
          dir_ = os.path.expanduser(dir_)
          loc_classes = [
              d
              for d in os.listdir(dir_)
              if os.path.isdir(os.path.join(dir_, d))
          ]
          for cls in loc_classes:
              if cls not in classes:
                  classes.append(cls)
  
      classes.sort()
      class_to_idx = {classes[i]: i for i in range(len(classes))}
      return classes, class_to_idx
  
imports: import fnmatch
  import os
  import os.path
  import random
  import warnings
  import numpy
  import tqdm
label_desc: Use image node_id 13 for calling a global function with example usage: _find_classes(dirs) and returns: classes,  class_to_idx