class_docstr: Initialise a BIFWriter Object
  
  Parameters
  ----------
  model: BayesianNetwork Instance
  
  round_values: int (default: None)
      Round the probability values to `round_values` decimals. If None, keeps all decimal points.
  
  Examples
  ---------
  >>> from pgmpy.readwrite import BIFWriter
  >>> from pgmpy.utils import get_example_model
  >>> asia = get_example_model('asia')
  >>> writer = BIFWriter(asia)
  >>> writer
  <writer_BIF.BIFWriter at 0x7f05e5ea27b8>
  >>> writer.write_bif('asia.bif')
code: def __init__(self, model, round_values=None):
      if not isinstance(model, BayesianNetwork):
          raise TypeError(
              "model must be an instance of BayesianNetwork"
          )
      self.model = model
      self.round_values = round_values
      if not self.model.name:
          self.network_name = "unknown"
      else:
          self.network_name = self.model.name
      self.variable_states = self.get_states()
      self.property_tag = self.get_properties()
      self.variable_parents = self.get_parents()
      self.tables = self.get_cpds()
  
imports: import collections
  import re
  from copy import copy
  from itertools import product
  from string import Template
  import numpy
  import pyparsing
  from joblib import Parallel, delayed
  from pyparsing import CharsNotIn, Group, OneOrMore, Optional, Suppress, Word, ZeroOrMore, alphanums, cppStyleComment, nums, printables
  from pgmpy.factors.discrete import TabularCPD
  from pgmpy.models import BayesianNetwork
  from pgmpy.utils import compat_fns
label_desc: Use image node_id 1 to create a new BIFWriter object from inherited base classes: object with example: obj = BIFWriter(model, round_values)