code: def test_serialization_deserialization_integrity(self):
      # The value traitlet needs to remain unchanged following
      # a serialization / deserialization roundtrip, otherwise
      # the kernel dispatches it back to the frontend following
      # a state change, because it doesn't recognize that the
      # property_lock entry is the same as the new value.
      from ipykernel.comm import Comm
  
      uploader = FileUpload()
      mock_comm = MagicMock(spec=Comm)
      mock_comm.send = MagicMock()
      mock_comm.kernel = "does not matter"
      uploader.comm = mock_comm
      message = {"value": [FILE_UPLOAD_FRONTEND_CONTENT]}
      uploader.set_state(message)
  
      # Check that no message is sent back to the frontend
      # as a result of setting the state.
      mock_comm.send.assert_not_called()
  
file_path: catboost/contrib/python/ipywidgets/py3/ipywidgets/widgets/tests/test_widget_upload.py
imports: import datetime
  from unittest import TestCase
  from unittest.mock import MagicMock
  from traitlets import TraitError
  from ipywidgets import FileUpload
label_desc: Use image node_id 6 for calling the TestFileUpload obj's underlying member method code with example usage: obj.test_serialization_deserialization_integrity() without return types