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()
docstr: Returns the states of each variable in the network
  
  Example
  ---------------
  # 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.get_states()
  {'asia': ['yes', 'no'],
  'tub': ['yes', 'no'],
  'smoke': ['yes', 'no'],
  'lung': ['yes', 'no'],
  'bronc': ['yes', 'no'],
  'either': ['yes', 'no'],
  'xray': ['yes', 'no'],
  'dysp': ['yes', 'no']}
docstr_tok: ["Returns","the","states","of","each","variable","in","the","network","Example","--","--","--","--","--","--","--","-","#","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.get_states","(",")","{","'asia","'",":","[","'yes","'",",","'no","'","]",",","'tub","'",":","[","'yes","'",",","'no","'","]",",","'smoke","'",":","[","'yes","'",",","'no","'","]",",","'lung","'",":","[","'yes","'",",","'no","'","]",",","'bronc","'",":","[","'yes","'",",","'no","'","]",",","'either","'",":","[","'yes","'",",","'no","'","]",",","'xray","'",":","[","'yes","'",",","'no","'","]",",","'dysp","'",":","[","'yes","'",",","'no","'","]","}"]
code: def get_states(self):
      """
      Returns the states of each variable in the network
  
      Example
      ---------------
      # 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.get_states()
      {'asia': ['yes', 'no'],
      'tub': ['yes', 'no'],
      'smoke': ['yes', 'no'],
      'lung': ['yes', 'no'],
      'bronc': ['yes', 'no'],
      'either': ['yes', 'no'],
      'xray': ['yes', 'no'],
      'dysp': ['yes', 'no']}
      """
  
      variable_states = {}
      for index, match in enumerate(
          self.name_expr.scanString(self.network)
      ):
          result = match[0]
          name = result.nodename
          allstates = list(self.state_expr.scanString(self.network))
          states_unedited = list(
              allstates[index][0].statenames
          )  # includes double quotation like ['"state1"', '"state2"']
          states_edited = [
              state.replace('"', "") for state in states_unedited
          ]
          variable_states[name] = states_edited
      return variable_states
  
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 6 for calling the NETReader obj's underlying member method code with example usage: obj.get_states() and returns: variable_states