code: def test_state_dict():
      reporter = Reporter()
      reporter.set_epoch(1)
      with reporter.observe("train") as sub:
          stats1 = {"aa": 0.6}
          sub.register(stats1)
          sub.next()
      with reporter.observe("eval") as sub:
          stats1 = {"bb": 0.6}
          sub.register(stats1)
          sub.next()
      state = reporter.state_dict()
  
      reporter2 = Reporter()
      reporter2.load_state_dict(state)
      state2 = reporter2.state_dict()
  
      assert state == state2
  
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 15 for calling a global function with example usage: test_state_dict() without return types