code: def test_mismatching_dimensions_throws_configuration_error(self):
      params = Params.from_file(self.param_file)
      # Make the phrase layer wrong - it should be 150 to match
      # the embedding + binary feature dimensions.
      params["model"]["encoder"]["input_size"] = 10
      with pytest.raises(ConfigurationError):
          Model.from_params(
              vocab=self.vocab, params=params.pop("model")
          )
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import subprocess
  import os
  from flaky import flaky
  import pytest
  import numpy
  from allennlp.common.testing import ModelTestCase
  from allennlp.common.params import Params
  from allennlp.common.checks import ConfigurationError
  from allennlp.models.semantic_role_labeler import convert_bio_tags_to_conll_format
  from allennlp.models import Model
  from allennlp.models.semantic_role_labeler import write_to_conll_eval_file
  from allennlp.nn.util import get_lengths_from_binary_sequence_mask
  from io import open
label_desc: Use image node_id 8 for calling the SemanticRoleLabelerTest obj's underlying member method code with example usage: obj.test_mismatching_dimensions_throws_configuration_error() without return types