code: def set_attributes(self, session_key, attributes):
          
          session = self._lookup_required_session(session_key)
          session.set_attributes(attributes)
          self.session_handler.on_change(session)
docs: :type attributes: dict