def _pin_mongos(self, server):
        """Pin this session to the given mongos Server."""
        self._transaction.sharded = True
        self._transaction.pinned_address = server.description.address
Pin this session to the given mongos Server.
stackoverflow/venv/lib/python3.6/site-packages/pymongo/client_session.py