def create(self, obj, object_id=None, attachments=None, datastore_name=""):
        if not isinstance(obj, IonObjectBase):
            raise BadRequest("Obj param is not instance of IonObjectBase")

        return self.create_doc(self._ion_object_to_persistence_dict(obj),
                                   object_id=object_id, datastore_name=datastore_name,
                                   attachments=attachments)
Converts ion objects to python dictionary before persisting them using the optional
dataset/ETHPy150Open ooici/pyon/pyon/datastore/postgresql/datastore.py/PostgresPyonDataStore.create