code: def genericTests(self, cbs):
      self.assertTrue(isinstance(cbs, CohesiveBlocks))
      self.assertTrue(
          all(
              cbs.cohesion(i) == c
              for i, c in enumerate(cbs.cohesions())
          )
      )
      self.assertTrue(
          all(cbs.parent(i) == c for i, c in enumerate(cbs.parents()))
      )
      self.assertTrue(
          all(
              cbs.max_cohesion(i) == c
              for i, c in enumerate(cbs.max_cohesions())
          )
      )
  
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 1 for calling the CohesiveBlocksTests obj's underlying member method code with example usage: obj.genericTests(cbs) without return types