code: def test_from_archive(self, capsys):
      archive_path = str(
          self.FIXTURES_ROOT
          / "basic_classifier"
          / "serialization"
          / "model.tar.gz"
      )
      sys.argv = ["allennlp", "diff", archive_path, archive_path]
      main()
      captured = capsys.readouterr()
      assert (
          _clean_output(captured.out)
          == """
   _text_field_embedder.token_embedder_tokens.weight, shape = (213, 10)
   _seq2seq_encoder._module.weight_ih_l0, shape = (64, 10)
   _seq2seq_encoder._module.weight_hh_l0, shape = (64, 16)
   _seq2seq_encoder._module.bias_ih_l0, shape = (64,)
   _seq2seq_encoder._module.bias_hh_l0, shape = (64,)
   _feedforward._linear_layers.0.weight, shape = (20, 16)
   _feedforward._linear_layers.0.bias, shape = (20,)
   _classification_layer.weight, shape = (2, 20)
   _classification_layer.bias, shape = (2,)
          """.strip()
      )
  
file_path: allennlp/tests/commands/diff_test.py
imports: import sys
  import torch
  from torch.nn import Parameter
  from allennlp.commands import main
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 1 for calling the TestDiffCommand obj's underlying member method code with example usage: obj.test_from_archive(capsys) without return types