code: def replace_one(self, replacement):
          
          self.__bulk.add_replace(self.__selector, replacement, upsert=True,
                                  collation=self.__collation)
docs: Replace one entire document matching the selector criteria.
  
          :Parameters:
            - `replacement` (dict): the replacement document