<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_sentry_context(self, tag, value):
 """Set a context tag in Sentry for the given key and value. :param tag: The context tag name :type tag: :class:`str` :param value: The context value :type value: :class:`str` """

        if self.sentry_client:
            self.logger.debug('Setting sentry context for %s to %s', tag,
                              value)
            self.sentry_client.tags_context({tag: value})