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_name` return the state number.
docstr_tok: ["Given","`","var","`","and","`","state_name","`","return","the","state","number","."]
code: def get_state_no(self, var, state_name):
      """
      Given `var` and `state_name` return the state number.
      """
      if self.state_names:
          return self.name_to_no[var][state_name]
      else:
          return state_name
  
label_desc: Use image node_id 3 for calling the StateNameMixin obj's underlying member method code with example usage: obj.get_state_no(var, state_name) and returns: self, state_name