code: def get_classes_from_dir(DIR, verbose=0):
      if len(listdir(DIR, verbose=0)) == 0:
          raise ValueError(
              "The specified directory does not seem to have any folders in it"
          )
      else:
          import os
  
          classes = [
              i
              for i in listdir(DIR, recursive=False, verbose=verbose)
              if os.path.isdir(join(DIR, i))
          ]
          return classes
  
file_path: caer/caer/core.py
imports: import cv2
  import numpy
  import gc
  from .path import listdir, join
label_desc: Use image node_id 4 for calling a global function with example usage: get_classes_from_dir(DIR, verbose) and returns: classes