code: def test_no_elmo_but_set_flags_throws_configuration_error(self):
      params = Params.from_file(self.param_file)
      # There is no elmo specified in self.param_file, but set
      # use_input_elmo and use_integrator_output_elmo to True.
      # use_input_elmo set to True
      tmp_params = deepcopy(params)
      tmp_params["model"]["use_input_elmo"] = True
      with pytest.raises(ConfigurationError):
          Model.from_params(
              vocab=self.vocab, params=tmp_params.get("model")
          )
  
      # use_integrator_output_elmo set to True
      tmp_params = deepcopy(params)
      tmp_params["model"]["use_input_elmo"] = False
      tmp_params["model"]["use_integrator_output_elmo"] = True
      with pytest.raises(ConfigurationError):
          Model.from_params(
              vocab=self.vocab, params=tmp_params.get("model")
          )
  
      # both use_input_elmo and use_integrator_output_elmo set to True
      tmp_params = deepcopy(params)
      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 8 for calling the BiattentiveClassificationNetworkTest obj's underlying member method code with example usage: obj.test_no_elmo_but_set_flags_throws_configuration_error() without return types