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
Import a dotted module path and return the attribute/class designated by the
dataset/ETHPy150Open ooici/pyon/pyon/datastore/couchdb/base_store.py/CouchDataStore.list_attachments--crossover with--dataset/ETHPy150Open danirus/django-comments-xtd/django_comments_xtd/compat.py/import_by_path