code: def test_hits_numpy(self):
      G = self.G
      h, a = _hits_numpy(G)
      for n in G:
          assert h[n] == pytest.approx(G.h[n], abs=1e-4)
      for n in G:
          assert a[n] == pytest.approx(G.a[n], abs=1e-4)
  
file_path: networkx/networkx/algorithms/link_analysis/tests/test_hits.py
imports: import pytest
  import networkx
  from networkx.algorithms.link_analysis.hits_alg import _hits_numpy, _hits_python, _hits_scipy
label_desc: Use image node_id 2 for calling the TestHITS obj's underlying member method code with example usage: obj.test_hits_numpy() without return types