code: def insert(self, doc_or_docs, **kwargs):
          
          check = kwargs.pop('check', True)
          if isinstance(doc_or_docs, dict):
              if check is True:
                  doc_or_docs = self._valid_record(doc_or_docs)
              result = self.__collect.insert_one(doc_or_docs, **kwargs)
              return result.inserted_id
          else:
              if check is True:
                  for d in doc_or_docs:
                      d = self._valid_record(d)
              result = self.__collect.insert_many(doc_or_docs, **kwargs)
              return result.inserted_ids
docs: Insert method