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 property to variables in XMLBIF
  
  Return
  ------
  dict: dict of type {variable: property tag}
  
  Examples
  --------
  >>> writer = XMLBIFWriter(model)
  >>> writer.get_property()
  {'light-on': <Element PROPERTY at 0x7f7a2ffac1c8>,
   'family-out': <Element PROPERTY at 0x7f7a2ffac148>,
   'hear-bark': <Element PROPERTY at 0x7f7a2ffac188>,
   'bowel-problem': <Element PROPERTY at 0x7f7a2ffac0c8>,
   'dog-out': <Element PROPERTY at 0x7f7a2ffac108>}
docstr_tok: ["Add","property","to","variables","in","XMLBIF","Return","--","--","--","dict",":","dict","of","type","{","variable",":","property","tag","}","Examples","--","--","--","--",">",">",">","writer","=","XMLBIFWriter","(","model",")",">",">",">","writer.get_property","(",")","{","'light-on","'",":","<","Element","PROPERTY","at","0x7f7a2ffac1c8",">",",","'family-out","'",":","<","Element","PROPERTY","at","0x7f7a2ffac148",">",",","'hear-bark","'",":","<","Element","PROPERTY","at","0x7f7a2ffac188",">",",","'bowel-problem","'",":","<","Element","PROPERTY","at","0x7f7a2ffac0c8",">",",","'dog-out","'",":","<","Element","PROPERTY","at","0x7f7a2ffac108",">","}"]
code: def get_properties(self):
      """
      Add property to variables in XMLBIF
  
      Return
      ------
      dict: dict of type {variable: property tag}
  
      Examples
      --------
      >>> writer = XMLBIFWriter(model)
      >>> writer.get_property()
      {'light-on': <Element PROPERTY at 0x7f7a2ffac1c8>,
       'family-out': <Element PROPERTY at 0x7f7a2ffac148>,
       'hear-bark': <Element PROPERTY at 0x7f7a2ffac188>,
       'bowel-problem': <Element PROPERTY at 0x7f7a2ffac0c8>,
       'dog-out': <Element PROPERTY at 0x7f7a2ffac108>}
      """
      variables = self.model.nodes()
      property_tag = {}
      for var in sorted(variables):
          properties = self.model.nodes[var]
          property_tag[var] = etree.SubElement(
              self.variables[var], "PROPERTY"
          )
          for prop, val in properties.items():
              property_tag[var].text = str(prop) + " = " + str(val)
      return property_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 7 for calling the XMLBIFWriter obj's underlying member method code with example usage: obj.get_properties() and returns: property_tag