class_docstr: Initialisation of XMLBIFReader object.
  
  Parameters
  ----------
  path : file or str
      File of XMLBIF data
      File of XMLBIF data
  
  string : str
      String of XMLBIF data
  
  Examples
  --------
  # xmlbif_test.xml is the file present in
  # http://www.cs.cmu.edu/~fgcozman/Research/InterchangeFormat/
  >>> from pgmpy.readwrite import XMLBIFReader
  >>> reader = XMLBIFReader("xmlbif_test.xml")
  >>> model = reader.get_model()
  
  Reference
  ---------
  [1] https://www.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/
docstr: Returns the parents of the variables present in the network
  
  Examples
  --------
  >>> reader = XMLBIF.XMLBIFReader("xmlbif_test.xml")
  >>> reader.get_parents()
  {'bowel-problem': [],
   'dog-out': ['family-out', 'bowel-problem'],
   'family-out': [],
   'hear-bark': ['dog-out'],
   'light-on': ['family-out']}
docstr_tok: ["Returns","the","parents","of","the","variables","present","in","the","network","Examples","--","--","--","--",">",">",">","reader","=","XMLBIF.XMLBIFReader","(","``","xmlbif_test.xml","''",")",">",">",">","reader.get_parents","(",")","{","'bowel-problem","'",":","[","]",",","'dog-out","'",":","[","'family-out","'",",","'bowel-problem","'","]",",","'family-out","'",":","[","]",",","'hear-bark","'",":","[","'dog-out","'","]",",","'light-on","'",":","[","'family-out","'","]","}"]
code: def get_parents(self):
      """
      Returns the parents of the variables present in the network
  
      Examples
      --------
      >>> reader = XMLBIF.XMLBIFReader("xmlbif_test.xml")
      >>> reader.get_parents()
      {'bowel-problem': [],
       'dog-out': ['family-out', 'bowel-problem'],
       'family-out': [],
       'hear-bark': ['dog-out'],
       'light-on': ['family-out']}
      """
      variable_parents = {
          definition.find("FOR").text: [
              edge.text for edge in definition.findall("GIVEN")
          ]
          for definition in self.network.findall("DEFINITION")
      }
      return variable_parents
  
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 5 for calling the XMLBIFReader obj's underlying member method code with example usage: obj.get_parents() and returns: variable_parents