code: def test_fine_tune_runtime_errors_with_vocab_expansion(self):
      params = Params.from_file(self.config_file)
      params["train_data_path"] = unicode(
          self.FIXTURES_ROOT / "data" / "snli2.jsonl"
      )
  
      model = load_archive(self.model_archive).model
  
      # If we do vocab expansion, we get a runtime error because of the embedding.
      with pytest.raises(RuntimeError):
          fine_tune_model(
              model, params, self.serialization_dir, extend_vocab=True
          )
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/commands/fine_tune_test.py
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import argparse
  import re
  import shutil
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.commands.fine_tune import FineTune, fine_tune_model_from_file_paths, fine_tune_model_from_args, fine_tune_model
  from allennlp.common.params import Params
  from allennlp.models import load_archive
label_desc: Use image node_id 4 for calling the TestFineTune obj's underlying member method code with example usage: obj.test_fine_tune_runtime_errors_with_vocab_expansion() without return types