code: def test_include_in_archive(self):
      self.params["include_in_archive"] = ["metrics_epoch_*.json"]
  
      serialization_dir = self.TEST_DIR / "serialization"
      # Train a model
      train_model(self.params, serialization_dir=serialization_dir)
  
      # Assert that the additional targets were archived
      with tempfile.TemporaryDirectory() as tempdir:
          with tarfile.open(
              serialization_dir / "model.tar.gz", "r:gz"
          ) as archive:
              archive.extractall(tempdir)
          assert os.path.isfile(
              os.path.join(tempdir, "metrics_epoch_0.json")
          )
          assert os.path.isfile(
              os.path.join(tempdir, "metrics_epoch_1.json")
          )
          assert not os.path.isfile(
              os.path.join(tempdir, "metrics.json")
          )
  
imports: import copy
  import os
  import tempfile
  import tarfile
  import pytest
  import torch
  from allennlp.version import _MAJOR, _MINOR
  from allennlp.commands.train import train_model
  from allennlp.common import Params
  from allennlp.common.meta import Meta
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.dataset_readers import DatasetReader
  from allennlp.models.archival import archive_model, load_archive, CONFIG_NAME, _check_version_compatibility
label_desc: Use image node_id 6 for calling the ArchivalTest obj's underlying member method code with example usage: obj.test_include_in_archive() without return types