code: def testAuthorityScore(self):
      for idx, g in enumerate(self.__class__.graphs):
          try:
              sc = g.authority_score()
          except Exception as ex:
              self.assertTrue(
                  False,
                  msg="Authority score calculation threw exception for graph #%d: %s"
                  % (idx, ex),
              )
              raise
  
          if g.vcount() == 0:
              self.assertEqual([], sc)
              continue
  
          self.assertAlmostEqual(
              max(sc),
              1,
              places=7,
              msg="Maximum authority score is not 1 for graph #%d"
              % idx,
          )
          self.assertTrue(
              min(sc) >= 0,
              msg="Minimum authority score is less than 0 for graph #%d"
              % idx,
          )
  
file_path: python-igraph/tests/test_atlas.py
imports: import warnings
  import unittest
  from igraph import Graph
label_desc: Use image node_id 4 for calling the AtlasTestBase obj's underlying member method code with example usage: obj.testAuthorityScore() without return types