code: def test_size_mismatch(self):
      # This test will verify that an exception is raised when you try
      # to initialize a parameter to a pretrained parameter and they have
      # different sizes
      name_overrides = {"linear_1.weight": "linear_3.weight"}
      applicator = self._get_applicator(
          "linear_1.*", self.temp_file, name_overrides
      )
      with pytest.raises(ConfigurationError):
          applicator(self.net1)
  
imports: from typing import Dict, Optional
  import os
  import tempfile
  import tarfile
  import pytest
  import torch
  from allennlp.nn import InitializerApplicator, Initializer
  from allennlp.nn.initializers import PretrainedModelInitializer
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.common.params import Params
label_desc: Use image node_id 9 for calling the TestPretrainedModelInitializer obj's underlying member method code with example usage: obj.test_size_mismatch() without return types