class_docstr: Unit tests for the UploadStats class.
class_docstr_tok: ["Unit","tests","for","the","UploadStats","class","."]
code: def testAddTensor(self):
      stats = upload_tracker.UploadStats()
      stats.add_tensors(
          num_tensors=10,
          num_tensors_skipped=0,
          tensor_bytes=1000,
          tensor_bytes_skipped=0,
      )
      self.assertEqual(stats.num_tensors, 10)
      self.assertEqual(stats.num_tensors_skipped, 0)
      self.assertEqual(stats.tensor_bytes, 1000)
      self.assertEqual(stats.tensor_bytes_skipped, 0)
      stats.add_tensors(
          num_tensors=20,
          num_tensors_skipped=5,
          tensor_bytes=2000,
          tensor_bytes_skipped=500,
      )
      self.assertEqual(stats.num_tensors, 30)
      self.assertEqual(stats.num_tensors_skipped, 5)
      self.assertEqual(stats.tensor_bytes, 3000)
      self.assertEqual(stats.tensor_bytes_skipped, 500)
  
imports: import sys
  from unittest import mock
  from tensorboard import test
  from tensorboard.uploader import upload_tracker
label_desc: Use image node_id 2 for calling the UploadStatsTest obj's underlying member method code with example usage: obj.testAddTensor() without return types