class_docstr: Test for the UploadTracker class.
class_docstr_tok: ["Test","for","the","UploadTracker","class","."]
code: def setUp(self):
      super().setUp()
      self.cumulative_bar = mock.MagicMock()
      self.skipped_bar = mock.MagicMock()
      self.uploading_bar = mock.MagicMock()
      self.mock_write = mock.MagicMock()
      self.mock_stdout_write = mock.patch.object(
          sys.stdout, "write", self.mock_write
      )
      self.mock_stdout_write.start()
      self.mock_flush = mock.MagicMock()
      self.mock_stdout_flush = mock.patch.object(
          sys.stdout, "flush", self.mock_flush
      )
      self.mock_stdout_flush.start()
  
imports: import sys
  from unittest import mock
  from tensorboard import test
  from tensorboard.uploader import upload_tracker
label_desc: Use image node_id 1 for calling the UploadTrackerTest obj's underlying member method code with example usage: obj.setUp() without return types