class_docstr: Initializes a NETReader object.
  
  Parameters
  ----------
  path : file or str
      File of net data
  
  string : str
      String of net data
  
  include_properties: boolean
      If True, gets the properties tag from the file and stores in graph properties.
  
  defaultname: int (default: "bn_model")
      Default name for the network if a network name is not available in the net file.
  
  Examples
  --------
  # asia.net file is present at
  # https://www.bnlearn.com/bnrepository/discrete-small.html#asia
  >>> from pgmpy.readwrite import NETReader
  >>> reader = NETReader("asia.net")
  >>> reader
  <pgmpy.readwrite.NET.NETReader at 0x7feac645c640>
  >>> model = reader.get_model()
code: def __init__(
      self,
      path=None,
      string=None,
      include_properties=False,
      defaultName="bn_model",
  ):
      if path:
          with open(path, "r") as network:
              self.network = network.read()
  
      elif string:
          self.network = string
  
      else:
          raise ValueError("Must specify either path or string")
  
      self.include_properties = include_properties
  
      if "/*" in self.network or "//" in self.network:
          self.network = cppStyleComment.suppress().transformString(
              self.network
          )  # removing comments from the file
  
      (
          self.name_expr,
          self.state_expr,
          self.property_expr,
      ) = self.get_variable_grammar()
  
      (
          self.potential_expr,
          self.cpd_expr,
      ) = self.get_probability_grammar()
  
      if not self.get_network_name():
          self.network_name = defaultName
      else:
          self.network_name = self.get_network_name()
  
      self.variable_names = self.get_variables()
      self.variable_states = self.get_states()
      if self.include_properties:
          self.variable_properties = self.get_property()
      self.variable_parents = self.get_parents()
      self.variable_cpds = self.get_values()
      self.edges = self.get_edges()
  
imports: import collections
  from math import prod
  from string import Template
  import numpy
  from pyparsing import CharsNotIn, Group, OneOrMore, Optional, Suppress, Word, ZeroOrMore, alphanums, alphas, cppStyleComment, nums, printables
  from pgmpy.factors.discrete.CPD import TabularCPD
  from pgmpy.models import BayesianNetwork
  from pgmpy.utils import compat_fns
label_desc: Use image node_id 1 to create a new NETReader object  with example: obj = NETReader(path, string, include_properties, defaultName)