code: def set_threadlocal(self, **values):
          
          with self._lock:
              self._ensure_threadlocal()
              self._tpayload.context = values
docs: Set current thread's logging context to specified `values`