def list_attachments(self, doc):
        if isinstance(doc, dict) and '_attachments' not in doc:
            # Need to reread again, because it did not contain the _attachments
            doc = self.read_doc(doc_id=doc["_id"])
        elif isinstance(doc, str):
            doc = self.read_doc(doc_id=doc)

        attachment_list = doc.get("_attachments", None)
        return attachment_list
Returns the a list of attachments for the document, as a dict of dicts, key'ed by name with
dataset/ETHPy150Open ooici/pyon/pyon/datastore/couchdb/base_store.py/CouchDataStore.list_attachments