code: def test_load_snli():
      train_data, classes = mz.datasets.snli.load_data(
          "train", "classification", return_classes=True
      )
      num_samples = 550146
      assert len(train_data) == num_samples
      x, y = train_data.unpack()
      assert len(x["text_left"]) == num_samples
      assert len(x["text_right"]) == num_samples
      assert y.shape == (num_samples, 4)
      assert classes == ["entailment", "contradiction", "neutral", "-"]
      dev_data, classes = mz.datasets.snli.load_data(
          "dev", "classification", return_classes=True
      )
      assert len(dev_data) == 10000
      assert classes == ["entailment", "contradiction", "neutral", "-"]
      test_data, classes = mz.datasets.snli.load_data(
          "test", "classification", return_classes=True
      )
      assert len(test_data) == 10000
      assert classes == ["entailment", "contradiction", "neutral", "-"]
  
      train_data = mz.datasets.snli.load_data("train", "ranking")
      x, y = train_data.unpack()
      assert len(x["text_left"]) == num_samples
      assert len(x["text_right"]) == num_samples
      assert y.shape == (num_samples, 1)
  
imports: import pytest
  import matchzoo
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_snli() without return types