code: def test_sort_and_couple():
      l = [0, 1, 2]
      s = [0.1, 0.4, 0.2]
      c = sort_and_couple(l, s)
      assert (c == np.array([(1, 0.4), (2, 0.2), (0, 0.1)])).all()
  
file_path: MatchZoo/tests/unit_test/test_metrics.py
imports: import numpy
  from matchzoo.engine.base_metric import sort_and_couple
  from matchzoo import metrics
label_desc: Use image node_id 1 for calling a global function with example usage: test_sort_and_couple() without return types