code: def find_formatters(path, silent=True):
      
      formatters = [f for f in six.itervalues(FormatterRegister.formatters) if f.accepts(path)]
      if formatters or silent:
          return formatters
      else:
          raise Exception("cannot find formatter for path '{}'".format(path))
docs: Returns a list of formatter classes which would accept the file given by *path*. When no classes
      could be found and *silent* is *True*, an empty list is returned. Otherwise, an exception is
      raised.