code: def test_avg_merger_finalized_error(self):
      with self.assertRaises(ValueError):
          merger = AvgMerger(merged_shape=(1, 3, 2, 3))
          merger.finalize()
          merger.aggregate(torch.zeros(1, 3, 2, 2), (3, 3))
  
file_path: MONAI/tests/test_avg_merger.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from torch.nn.functional import pad
  from monai.inferers import AvgMerger
  from tests.utils import assert_allclose
label_desc: Use image node_id 2 for calling the AvgMergerTests obj's underlying member method code with example usage: obj.test_avg_merger_finalized_error() without return types