class_docstr: This class is inherited by classes which deal with state names of variables.
  The state names are stored in instances of `StateNameMixin`. The conversion between
  state number and names are also handled by methods in this class.
class_docstr_tok: ["This","class","is","inherited","by","classes","which","deal","with","state","names","of","variables",".","The","state","names","are","stored","in","instances","of","`","StateNameMixin","`",".","The","conversion","between","state","number","and","names","are","also","handled","by","methods","in","this","class","."]
docstr: Given `var` and `state_no` returns the state name.
docstr_tok: ["Given","`","var","`","and","`","state_no","`","returns","the","state","name","."]
code: def get_state_names(self, var, state_no):
      """
      Given `var` and `state_no` returns the state name.
      """
      if self.state_names:
          return self.no_to_name[var][state_no]
      else:
          return state_no
  
label_desc: Use image node_id 2 for calling the StateNameMixin obj's underlying member method code with example usage: obj.get_state_names(var, state_no) and returns: self, state_no