code: def test_elmo_num_repr_set_flags_mismatch_throws_configuration_error(
      self,
  ):
      # pylint: disable=line-too-long
      params = Params.from_file(
          self.FIXTURES_ROOT
          / "biattentive_classification_network"
          / "elmo_experiment.json"
      )
      # Elmo is specified in the model, with num_output_representations=2. Set
      # only one flag to true.
      tmp_params = deepcopy(params)
      tmp_params["model"]["use_input_elmo"] = False
      with pytest.raises(ConfigurationError):
          Model.from_params(
              vocab=self.vocab, params=tmp_params.get("model")
          )
  
      tmp_params = deepcopy(params)
      tmp_params["model"]["use_input_elmo"] = True
      tmp_params["model"]["use_integrator_output_elmo"] = False
      with pytest.raises(ConfigurationError):
          Model.from_params(
              vocab=self.vocab, params=tmp_params.get("model")
          )
  
      # set num_output_representations to 1, and set both flags to True.
      tmp_params = deepcopy(params)
      tmp_params["model"]["elmo"]["num_output_representations"] = 1
      tmp_params["model"]["use_input_elmo"] = True
      tmp_params["model"]["use_integrator_output_elmo"] = True
      with pytest.raises(ConfigurationError):
          Model.from_params(
              vocab=self.vocab, params=tmp_params.get("model")
          )
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  from copy import deepcopy
  import pytest
  from allennlp.common.testing import ModelTestCase
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.params import Params
  from allennlp.models import Model
label_desc: Use image node_id 10 for calling the BiattentiveClassificationNetworkTest obj's underlying member method code with example usage: obj.test_elmo_num_repr_set_flags_mismatch_throws_configuration_error() without return types