code: def test_total_count():
      reporter = Reporter(2)
      assert reporter.get_epoch() == 2
      with reporter.observe("train", 1) as sub:
          sub.register({})
          sub.next()
      with reporter.observe("train", 2) as sub:
          sub.register({})
          sub.next()
          sub.register({})
          sub.next()
          assert sub.get_total_count() == 3
  
imports: import logging
  import uuid
  from pathlib import Path
  import numpy
  import pytest
  import torch
  from torch.utils.tensorboard import SummaryWriter
  from espnet2.train.reporter import Average, ReportedValue, Reporter, aggregate
label_desc: Use image node_id 17 for calling a global function with example usage: test_total_count() without return types