class_docstr: Example Builder for sphinx documentation
code: def parse_directory(self, path):
      dirpath = os.path.join(self.source_dir, path)
      if self.contents_file is None:
          L = os.listdir(dirpath)
      else:
          L = self.read_contents(path)
  
      subdirs = [
          d for d in L if os.path.isdir(os.path.join(dirpath, d))
      ]
      scripts = [s for s in L if s.endswith(".py")]
  
      return subdirs, scripts
  
imports: import sys
  import os
  import traceback
  import token
  import tokenize
  import gc
  import shutil
  import glob
  import warnings
  import matplotlib
  from matplotlib import image
  from matplotlib import pyplot
label_desc: Use image node_id 3 for calling the ExampleBuilder obj's underlying member method code with example usage: obj.parse_directory(path) and returns: subdirs,  scripts