code: def test_eigenvector_centrality_weighted(self):
      G = self.G
      p = nx.eigenvector_centrality(G)
      for a, b in zip(list(p.values()), self.G.evc):
          assert a == pytest.approx(b, abs=1e-4)
  
imports: import math
  import pytest
  import networkx
label_desc: Use image node_id 2 for calling the TestEigenvectorCentralityDirected obj's underlying member method code with example usage: obj.test_eigenvector_centrality_weighted() without return types