<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_tag(self, resource_type, resource_id, body, **_params):
 """Replace tags on the resource."""

        return self.put(self.tags_path % (resource_type, resource_id), body)