class_docstr: To create CategoricalPd
code: def __init__(self, ncat, nsteps, np_mask, is_act_model):
      self.ncat = ncat
      self.nsteps = nsteps
      self.np_mask = np_mask
      self.is_act_model = is_act_model
  
imports: import tensorflow.compat.v1
  from .util import fc
label_desc: Use image node_id 1 to create a new CategoricalPdType object from inherited base classes: PdType with example: obj = CategoricalPdType(ncat, nsteps, np_mask, is_act_model)