def _convert_diff_dcoument(self, document):
    if isinstance(document, list):
        new_doc = []
        for item in document:
            item_dict = self._conv_to_dict(item)
            new_doc.append(item_dict)
    else:
        new_doc = self._conv_to_dict(document)
    return new_doc
def _convert_diff_dcoument(self, document):
    if isinstance(document, list):
        new_doc = []
        for item in document:
            item_dict = self._conv_to_dict(item)
            new_doc.append(item_dict)
    else:
        new_doc = self._conv_to_dict(document)
    return new_doc