code: def testEigenvector(self):
      g = Graph.Full(5) + Graph.Full(5)
      g.add_edges([(0, 5)])
      cl = g.community_leading_eigenvector()
      self.assertMembershipsEqual(cl, [0, 0, 0, 0, 0, 1, 1, 1, 1, 1])
      self.assertAlmostEqual(cl.q, 0.4523, places=3)
      cl = g.community_leading_eigenvector(2)
      self.assertMembershipsEqual(cl, [0, 0, 0, 0, 0, 1, 1, 1, 1, 1])
      self.assertAlmostEqual(cl.q, 0.4523, places=3)
  
imports: import math
  import random
  import unittest
  from igraph import Clustering, CohesiveBlocks, Cover, Graph, Histogram, InternalError, UniqueIdGenerator, VertexClustering, compare_communities, split_join_distance, set_random_number_generator
label_desc: Use image node_id 5 for calling the CommunityTests obj's underlying member method code with example usage: obj.testEigenvector() without return types