code: def test_different_type():
      reporter = Reporter()
      with pytest.raises(ValueError):
          with reporter.observe("train", 1) as sub:
              sub.register({"a": 2}, weight=1)
              sub.next()
              sub.register({"a": 3})
              sub.next()
  
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 27 for calling a global function with example usage: test_different_type() without return types