code: def state_machine_for(self, process_name):
          
          process_entry = self.managed_handlers[process_name].process_entry
          return self.timetable.state_machines[process_entry.state_machine_name]
docs: :return: state machine for the given process name