code: def test_load_cqa_ql_16():
      # test load question pairs
      train_data = mz.datasets.cqa_ql_16.load_data(
          task="classification"
      )
      assert len(train_data) == 3998
      dev_data, tag = mz.datasets.cqa_ql_16.load_data(
          "dev", task="classification", return_classes=True
      )
      assert tag == ["PerfectMatch", "Relevant", "Irrelevant"]
      assert len(dev_data) == 500
      x, y = dev_data.unpack()
      assert y.shape == (500, 3)
      test_data = mz.datasets.cqa_ql_16.load_data("test")
      assert len(test_data) == 700
  
      # test load answer pairs
      train_data = mz.datasets.cqa_ql_16.load_data(match_type="answer")
      assert len(train_data) == 39980
      test_data = mz.datasets.cqa_ql_16.load_data(
          stage="test", match_type="answer"
      )
      assert len(test_data) == 7000
  
      # test load external answer pairs
      train_data = mz.datasets.cqa_ql_16.load_data(
          match_type="external_answer"
      )
      assert len(train_data) == 39980
  
      # test load rank data
      train_data = mz.datasets.cqa_ql_16.load_data(task="ranking")
      x, y = train_data.unpack()
      assert y.shape == (3998, 1)
  
      dev_data = mz.datasets.cqa_ql_16.load_data(
          "dev",
          task="ranking",
          match_type="answer",
          target_label="Good",
      )
      x, y = dev_data.unpack()
      assert y.shape == (5000, 1)
  
imports: import pytest
  import matchzoo
label_desc: Use image node_id 4 for calling a global function with example usage: test_load_cqa_ql_16() without return types