code: def test_textual_entailment(self):
      predictor = demo_model(*DEFAULT_MODELS["textual-entailment"])
  
      result = predictor.predict_json(
          {
              "premise": "An interplanetary spacecraft is in orbit around a gas giant's icy moon.",
              "hypothesis": "The spacecraft has the ability to travel between planets.",
          }
      )
  
      assert result["label_probs"][0] > 0.7  # entailment
  
      result = predictor.predict_json(
          {
              "premise": "Two women are wandering along the shore drinking iced tea.",
              "hypothesis": "Two women are sitting on a blanket near some rocks talking about politics.",
          }
      )
  
      assert result["label_probs"][1] > 0.8  # contradiction
  
      result = predictor.predict_json(
          {
              "premise": "A large, gray elephant walked beside a herd of zebras.",
              "hypothesis": "The elephant was lost.",
          }
      )
  
      assert result["label_probs"][2] > 0.6
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/models/sniff_test.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.models.archival import load_archive
  from allennlp.predictors import Predictor
label_desc: Use image node_id 3 for calling the SniffTest obj's underlying member method code with example usage: obj.test_textual_entailment() without return types