code: def test_tournament_matrix():
      np = pytest.importorskip("numpy")
      pytest.importorskip("scipy")
      npt = np.testing
      G = DiGraph([(0, 1)])
      m = tournament_matrix(G)
      npt.assert_array_equal(m.todense(), np.array([[0, 1], [-1, 0]]))
  
imports: from itertools import combinations
  import pytest
  from networkx import DiGraph
  from networkx.algorithms.tournament import hamiltonian_path, index_satisfying, is_reachable, is_strongly_connected, is_tournament, random_tournament, score_sequence, tournament_matrix
label_desc: Use image node_id 16 for calling a global function with example usage: test_tournament_matrix() without return types