class_docstr: One categorical column in a dataset.
class_docstr_tok: ["One","categorical","column","in","a","dataset","."]
code: def emit(self):
      if self.na_fraction == 0:
          is_na = False
      else:
          na_prob = random()
          is_na = na_prob < self.na_fraction
  
      if is_na:
          sys.stdout.write("NA")
          return
  
      if self.num_levels == 1:
          sys.stdout.write("level0")
          return
  
      val = randrange(self.num_levels)
      sys.stdout.write("level" + str(val))
  
imports: import sys
  import os
  import re
  from random import random
  from random import randrange
  from random import uniform
label_desc: Use image node_id 3 for calling the CategoricalColumn obj's underlying member method code with example usage: obj.emit() without return types