code: def get_status(self):
      
      self.__update_state()
      if self._state.active:
        return self.RUNNING
      else:
        return self._state.result_status
docs: Get status enum.
  
      Returns:
        One of the status enum.