<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace_one(self, replacement):
 """Replace one entire document matching the selector criteria. :Parameters: - `replacement` (dict):
 the replacement document """

        self.__bulk.add_replace(self.__selector, replacement, upsert=True,
                                collation=self.__collation)