<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _pin_mongos(self, server):
 """Pin this session to the given mongos Server."""

        self._transaction.sharded = True
        self._transaction.pinned_address = server.description.address