code: def testFromIntAttribute(self):
      cl = VertexClustering.FromAttribute(self.graph, "int")
      self.assertTrue(cl.membership == list(range(10)))
      cl = VertexClustering.FromAttribute(self.graph, "int", 15)
      self.assertTrue(cl.membership == [0, 1, 0, 0, 2, 1, 3, 0, 4, 0])
      cl = VertexClustering.FromAttribute(
          self.graph, "int", [10, 20, 30]
      )
      self.assertTrue(cl.membership == [0, 1, 2, 2, 1, 1, 3, 2, 1, 0])
  
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 3 for calling the VertexClusteringTests obj's underlying member method code with example usage: obj.testFromIntAttribute() without return types