code: def __isListOfTexts(self, docs):
          
          return isinstance(docs, list) and \
                 all(isinstance(d, (basestring, Text)) for d in docs)
docs: Checks whether the input is a list of strings or Text-s;