code: def test_task_listings(task_type):
      assert task_type.list_available_losses()
      assert task_type.list_available_metrics()
  
imports: import pytest
  from matchzoo import tasks
label_desc: Use image node_id 1 for calling a global function with example usage: test_task_listings(task_type) without return types