class_docstr: Initializer for XBNWriter class
  
  Parameters
  ----------
  model: BayesianNetwork Instance
      Model to write
  encoding: str(optional)
      Encoding for test data
  prettyprint: Bool(optional)
      Indentation in output XML if true
  
  Reference
  ---------
  http://xml.coverpages.org/xbn-MSdefault19990414.html
  
  Examples
  --------
  >>> writer = XBNWriter(model)
class_docstr_tok: ["Initializer","for","XBNWriter","class","Parameters","--","--","--","--","--","model",":","BayesianNetwork","Instance","Model","to","write","encoding",":","str","(","optional",")","Encoding","for","test","data","prettyprint",":","Bool","(","optional",")","Indentation","in","output","XML","if","true","Reference","--","--","--","--","-","http",":","\/\/xml.coverpages.org\/xbn-MSdefault19990414.html","Examples","--","--","--","--",">",">",">","writer","=","XBNWriter","(","model",")"]
docstr: Set attributes for ANALYSISNOTEBOOK tag
  
  Parameters
  ----------
  **data: dict
      {name: value} for the attributes to be set.
  
  Examples
  --------
  >>> from pgmpy.readwrite.XMLBeliefNetwork import XBNWriter
  >>> writer = XBNWriter()
  >>> writer.set_analysisnotebook(NAME="Notebook.Cancer Example From Neapolitan",
  ...                             ROOT='Cancer')
docstr_tok: ["Set","attributes","for","ANALYSISNOTEBOOK","tag","Parameters","--","--","--","--","--","*","*","data",":","dict","{","name",":","value","}","for","the","attributes","to","be","set",".","Examples","--","--","--","--",">",">",">","from","pgmpy.readwrite.XMLBeliefNetwork","import","XBNWriter",">",">",">","writer","=","XBNWriter","(",")",">",">",">","writer.set_analysisnotebook","(","NAME=","''","Notebook.Cancer","Example","From","Neapolitan","''",",","...","ROOT='Cancer","'",")"]
code: def set_analysisnotebook(self, **data):
      """
      Set attributes for ANALYSISNOTEBOOK tag
  
      Parameters
      ----------
      **data: dict
          {name: value} for the attributes to be set.
  
      Examples
      --------
      >>> from pgmpy.readwrite.XMLBeliefNetwork import XBNWriter
      >>> writer = XBNWriter()
      >>> writer.set_analysisnotebook(NAME="Notebook.Cancer Example From Neapolitan",
      ...                             ROOT='Cancer')
      """
      for key, value in data.items():
          self.network.set(str(key), str(value))
  
imports: import itertools
  import xml.etree.ElementTree
  import networkx
  import numpy
  from pgmpy.factors.discrete import TabularCPD
  from pgmpy.models import BayesianNetwork
label_desc: Use image node_id 4 for calling the XBNWriter obj's underlying member method code with example usage: obj.set_analysisnotebook() without return types