code: def validate_results(results):
      req = results[0]
      assert len(req.docs) == 1
      assert len(req.docs[0].matches) == 5
      assert len(req.docs[0].matches[0].matches) == 5
      assert len(req.docs[0].matches[-1].matches) == 5
      assert len(req.docs[0].matches[0].matches[0].matches) == 0
  
file_path: jina/tests/integration/high_order_matches/test_document.py
imports: from jina import Client, Document, Executor, Flow, requests
label_desc: Use image node_id 1 for calling a global function with example usage: validate_results(results) without return types