class_docstr: A state of an NFA or DFA.
docstr: Make this an accepting state with the given action. If
  there is already an action, choose the action with highest
  priority.
code: def set_action(self, action, priority):
      """Make this an accepting state with the given action. If
      there is already an action, choose the action with highest
      priority."""
      if priority > self.action_priority:
          self.action = action
          self.action_priority = priority
  
imports: from __future__ import absolute_import
  import sys
  from .Transitions import TransitionMap
label_desc: Use image node_id 5 for calling the Node obj's underlying member method code with example usage: obj.set_action(action, priority) without return types