class_docstr: Initialise a XMLBIFWriter object.
  
  Parameters
  ----------
  model: BayesianNetwork Instance
      Model to write
  
  encoding: str (optional)
      Encoding for text data
  
  prettyprint: Bool(optional)
      Indentation in output XML if true
  
  Examples
  --------
  >>> from pgmpy.readwrite import XMLBIFWriter
  >>> from pgmpy.utils import get_example_model
  >>> model = get_example_model('asia')
  >>> writer = XMLBIFWriter(model)
  >>> writer.write_xmlbif('asia.xml')
  
  Reference
  ---------
  [1] https://www.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/
docstr: Add Table to XMLBIF.
  
  Return
  ---------------
  dict: dict of type {variable: table tag}
  
  Examples
  -------
  >>> writer = XMLBIFWriter(model)
  >>> writer.get_values()
  {'dog-out': <Element TABLE at 0x7f240726f3c8>,
   'light-on': <Element TABLE at 0x7f240726f488>,
   'bowel-problem': <Element TABLE at 0x7f240726f388>,
   'family-out': <Element TABLE at 0x7f240726f408>,
   'hear-bark': <Element TABLE at 0x7f240726f448>}
docstr_tok: ["Add","Table","to","XMLBIF",".","Return","--","--","--","--","--","--","--","-","dict",":","dict","of","type","{","variable",":","table","tag","}","Examples","--","--","--","-",">",">",">","writer","=","XMLBIFWriter","(","model",")",">",">",">","writer.get_values","(",")","{","'dog-out","'",":","<","Element","TABLE","at","0x7f240726f3c8",">",",","'light-on","'",":","<","Element","TABLE","at","0x7f240726f488",">",",","'bowel-problem","'",":","<","Element","TABLE","at","0x7f240726f388",">",",","'family-out","'",":","<","Element","TABLE","at","0x7f240726f408",">",",","'hear-bark","'",":","<","Element","TABLE","at","0x7f240726f448",">","}"]
code: def get_values(self):
      """
      Add Table to XMLBIF.
  
      Return
      ---------------
      dict: dict of type {variable: table tag}
  
      Examples
      -------
      >>> writer = XMLBIFWriter(model)
      >>> writer.get_values()
      {'dog-out': <Element TABLE at 0x7f240726f3c8>,
       'light-on': <Element TABLE at 0x7f240726f488>,
       'bowel-problem': <Element TABLE at 0x7f240726f388>,
       'family-out': <Element TABLE at 0x7f240726f408>,
       'hear-bark': <Element TABLE at 0x7f240726f448>}
      """
      cpds = self.model.get_cpds()
      definition_tag = self.definition
      table_tag = {}
      for cpd in cpds:
          table_tag[cpd.variable] = etree.SubElement(
              definition_tag[cpd.variable], "TABLE"
          )
          table_tag[cpd.variable].text = ""
          for val in compat_fns.ravel_f(cpd.get_values()):
              table_tag[cpd.variable].text += str(val) + " "
  
      return table_tag
  
imports: import xml.etree.ElementTree
  from io import BytesIO
  from itertools import chain
  import numpy
  import pyparsing
  from pgmpy.factors.discrete import State, TabularCPD
  from pgmpy.models import BayesianNetwork
  from pgmpy.utils import compat_fns
label_desc: Use image node_id 9 for calling the XMLBIFWriter obj's underlying member method code with example usage: obj.get_values() and returns: table_tag