def view_documents(self, doc_or_docs, as_strings=False):
        documents = []
        if (isstr(doc_or_docs) or isint(doc_or_docs) 
            or isinstance(doc_or_docs, dict)):
            doc, label = self._res_doc_type(doc_or_docs)
            docs = list(doc)
        else:
            docs, labels = zip(*[self._res_doc_type(d) for d in doc_or_docs])
        
        all_docs = self.corpus.view_contexts(self.model.context_type,
                        as_strings=as_strings)
        for doc in docs:
            documents.append(all_docs[doc])

        return documents
Unpack arguments to be used in methods wrapped
dataset/ETHPy150Open inpho/vsm/vsm/viewer/ldacgsviewer.py/LdaCgsViewer.view_documents--crossover with--dataset/ETHPy150Open sihrc/tornado-boilerplate/indico/utils/__init__.py/unpack