code: def test_uses_named_inputs(self):
      inputs = {
          "source": "What kind of test succeeded on its first attempt?",
      }
  
      archive = load_archive(
          self.FIXTURES_ROOT
          / "encoder_decoder"
          / "simple_seq2seq"
          / "serialization"
          / "model.tar.gz"
      )
      predictor = Predictor.from_archive(archive, "simple_seq2seq")
  
      result = predictor.predict_json(inputs)
  
      predicted_tokens = result.get("predicted_tokens")
      assert predicted_tokens is not None
      assert isinstance(predicted_tokens, list)
      assert all(isinstance(x, unicode) for x in predicted_tokens)
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/predictors/simple_seq2seq_test.py
imports: from __future__ import division
  from __future__ import absolute_import
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.models.archival import load_archive
  from allennlp.predictors import Predictor
label_desc: Use image node_id 1 for calling the TestSimpleSeq2SeqPredictor obj's underlying member method code with example usage: obj.test_uses_named_inputs() without return types