code: def assoc(self, key, value):
          
          return self._replace(user_ctx={
              **self.user_ctx,
              key: value,
          })
docs: Return a modified PrettyContext with ``key`` set to ``value``