class_docstr: factor type parameter
      
class_docstr_tok: ["factor","type","parameter"]
code: def get_cardinality(self):
      return len(self.all_partitions)
  
imports: import math
  import logging
  import copy
  import random
  import numpy
  from itertools import permutations, combinations
  import nni
  from nni.tuner import Tuner
label_desc: Use image node_id 3 for calling the Factor obj's underlying member method code with example usage: obj.get_cardinality() and returns: len