def _get_doc_by_id(self, namespace, aliases_dict):
        try:
            nid = aliases_dict[namespace][0]
            kwargs = {namespace:nid, "view":'stats'}
            doc = self.session.catalog.by_identifier(**kwargs)
        except (__HOLE__, MendeleyException):
            doc = None
        return doc
dataset/ETHPy150Open Impactstory/total-impact-core/totalimpact/providers/mendeley.py/Mendeley._get_doc_by_id