code: def find_subdirectories(basepath):
      '''
      Return directories (and sub) starting from a base
      '''
      directories = []
      for root, dirnames, filenames in os.walk(basepath):
          new_directories = [d for d in dirnames if d not in directories]
          directories = directories + new_directories
      return directorief find_subdirectories(basepath):
      '''
      Return directories (and sub) starting from a base
      '''
      directories = []
      for root, dirnames, filenames in os.walk(basepath):
          new_directories = [d for d in dirnames if d not in directories]
          directories = directories + new_directories
      return directories
docs: Return directories (and sub) starting from a base