<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def assoc(self, key, value):
 """ Return a modified PrettyContext with ``key`` set to ``value`` """

        return self._replace(user_ctx={
            **self.user_ctx,
            key: value,
        })