def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def get_standardized_result(api_result):
    output = {
        'tags' : [],
        'captions' : [],