class_docstr: Initialize an instance of UAI writer class
  
  Parameters
  ----------
  model: A Bayesian or Markov model
      The model to write
  
  round_values: int (default: None)
      The number to decimals to which to round the probability values. If None, keeps all decimals points.
  
  Examples
  --------
  >>> from pgmpy.readwrite import UAIWriter
  >>> from pgmpy.utils import get_example_model
  >>> model = get_example_model('asia')
  >>> writer = UAIWriter(asia)
  >>> writer.write_uai('asia.uai')
docstr: Adds variables to the network.
  
  Examples
  --------
  >>> from pgmpy.readwrite import UAIWriter
  >>> writer = UAIWriter(model)
  >>> writer.get_nodes()
docstr_tok: ["Adds","variables","to","the","network",".","Examples","--","--","--","--",">",">",">","from","pgmpy.readwrite","import","UAIWriter",">",">",">","writer","=","UAIWriter","(","model",")",">",">",">","writer.get_nodes","(",")"]
code: def get_nodes(self):
      """
      Adds variables to the network.
  
      Examples
      --------
      >>> from pgmpy.readwrite import UAIWriter
      >>> writer = UAIWriter(model)
      >>> writer.get_nodes()
      """
      no_nodes = len(self.model.nodes())
      return str(no_nodes)
  
imports: from itertools import combinations
  import numpy
  from pyparsing import Combine, Literal, Optional, Regex, Word, alphas, nums
  from pgmpy.factors.discrete import DiscreteFactor, TabularCPD
  from pgmpy.models import BayesianNetwork, MarkovNetwork
  from pgmpy.utils import compat_fns
label_desc: Use image node_id 3 for calling the UAIWriter obj's underlying member method code with example usage: obj.get_nodes() and returns: str