code: def get_item(self):
          
          if self.was_list:
              result = ResultList()
              for item in self:
                  if isinstance(item, WorkflowItem):
                      if item.done and not item.error:
                          result.append(item.result)
                      else:
                          # When there's an error or the workflow isn't done yet,
                          # just return the original WorkflowItem so the caller
                          # can inspect its entire state.
                          result.append(item)
                  else:
                      result.append(item)
              return result
          else:
              return self[0]
docs: Returns the item to send back into the workflow generator.