code: def __init__(self, name, domain, dimensionality=1):
      super(DiscreteVariable, self).__init__(
          name, "discrete", domain, dimensionality
      )
  
imports: import numpy
  from copy import deepcopy
  from ..errors import InvalidConfigError
label_desc: Use image node_id 1 to create a new DiscreteVariable object from inherited base classes: Variable with example: obj = DiscreteVariable(name, domain, dimensionality)