code: def test_degree():
      r_dense = _run_dense_op(convolution.degree_matrix, adj)
      r_sparse = _run_sparse_op(convolution.degree_matrix, adj_sp)
      _check_results_equal(r_dense, r_sparse)
  
      assert np.allclose(r_dense[0], degree)
  
imports: import networkx
  import numpy
  import pytest
  import scipy.sparse
  from spektral.utils import convolution
label_desc: Use image node_id 5 for calling a global function with example usage: test_degree() without return types