code: def _check_results_equal(results_1, results_2):
      assert len(results_1) == len(results_2)
      for r_1, r_2 in zip(results_1, results_2):
          if sp.issparse(r_1):
              r_1 = r_1.A
          if sp.issparse(r_2):
              r_2 = r_2.A
          assert np.allclose(r_1, r_2, atol=tol)
  
imports: import networkx
  import numpy
  import pytest
  import scipy.sparse
  from spektral.utils import convolution
label_desc: Use image node_id 3 for calling a global function with example usage: _check_results_equal(results_1, results_2) without return types