code: def to_file(cls, status):
          
          return {
              Status.PENDING: DataFile.PENDING,
              Status.WAITING: DataFile.PENDING,
              Status.COMPLETED: DataFile.COMPLETED,
              Status.DELETED: DataFile.COMPLETED
          }[status]
docs: Returns the file in which this task is stored.