code: def list_themes(directory=None):
      
      repo = require_repo(directory)
      path = os.path.join(repo, themes_dir)
      return os.listdir(path) if os.path.isdir(path) else None
docs: Gets a list of the installed themes.