<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_snapshot_policy(self, name, policy):
 """ Update a snapshot policy. @param name: The name of the snapshot policy to update. @param policy: The modified snapshot policy. @return: The updated snapshot policy. @since: API v6 """

    return self._put("snapshots/policies/%s" % name, ApiSnapshotPolicy, data=policy,
        api_version=6)