class_docstr: The ImageSource class is used to search for and contain paths to images for augmentation.
code: def scan_directory(self, source_directory, recusrive_scan=False):
      # TODO: Make this a static member somewhere later
      file_types = [
          "*.jpg",
          "*.bmp",
          "*.jpeg",
          "*.gif",
          "*.img",
          "*.png",
      ]
      file_types.extend([str.upper(x) for x in file_types])
  
      list_of_files = []
  
      for file_type in file_types:
          list_of_files.extend(
              glob.glob(
                  os.path.join(
                      os.path.abspath(source_directory), file_type
                  )
              )
          )
  
      return list_of_files
  
file_path: Augmentor/Augmentor/ImageSource.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from builtins import *
  import os
  import glob
label_desc: Use image node_id 2 for calling the ImageSource obj's underlying member method code with example usage: obj.scan_directory(source_directory, recusrive_scan) and returns: list_of_files