code: def raise_thread_exception(thread_id, exception):
      
      if current_platform == "CPython":
          _raise_thread_exception_cpython(thread_id, exception)
      else:
          message = "Setting thread exceptions (%s) is not supported for your current platform (%r)."
          exctype = (exception if inspect.isclass(exception) else type(exception)).__name__
          logger.critical(message, exctype, current_platform)
docs: Raise an exception in a thread.
  
      Currently, this is only available on CPython.
  
      Note:
        This works by setting an async exception in the thread.  This means
        that the exception will only get called the next time that thread
        acquires the GIL.  Concretely, this means that this middleware can't
        cancel system calls.