code: def get_state_name(self):
          
          state_name = []
          for state, name in list(self.state_names.items()):
              if self._has_state(state):
                  state_name.append(name)
          return '|'.join(state_name)
docs: Returns a textual representation of this Task's state.