code: def test_extra_files(self):
      serialization_dir = self.TEST_DIR / "serialization"
  
      # Train a model
      train_model(self.params, serialization_dir=serialization_dir)
  
      # Archive model, and also archive the training data
      files_to_archive = {
          "train_data_path": unicode(
              self.FIXTURES_ROOT / "data" / "sequence_tagging.tsv"
          )
      }
      archive_model(
          serialization_dir=serialization_dir,
          files_to_archive=files_to_archive,
      )
  
      archive = load_archive(serialization_dir / "model.tar.gz")
      params = archive.config
  
      # The param in the data should have been replaced with a temporary path
      # (which we don't know, but we know what it ends with).
      assert params.get("train_data_path").endswith(
          "/fta/train_data_path"
      )
  
      # The validation data path should be the same though.
      assert params.get("validation_data_path") == unicode(
          self.FIXTURES_ROOT / "data" / "sequence_tagging.tsv"
      )
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/models/archival_test.py
imports: from __future__ import division
  from __future__ import absolute_import
  import copy
  import torch
  from allennlp.common import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.commands.train import train_model
  from allennlp.models.archival import load_archive, archive_model
label_desc: Use image node_id 3 for calling the ArchivalTest obj's underlying member method code with example usage: obj.test_extra_files() without return types