code: def ask_when_work_is_populated(self, work):
      
      work.read_all_from_datastore()
      if work.work:
        print('Work is already written to datastore.\n'
              'If you continue these data will be overwritten and '
              'possible corrupted.')
        inp = input_str('Do you want to continue? '
                        '(type "yes" without quotes to confirm): ')
        return inp == 'yes'
      else:
        return True
docs: When work is already populated asks whether we should continue.
  
      This method prints warning message that work is populated and asks
      whether user wants to continue or not.
  
      Args:
        work: instance of WorkPiecesBase
  
      Returns:
        True if we should continue and populate datastore, False if we should stop