code: def Sample(self, task, status):
      
      sample_time = time.time()
      sample = '{0:f}\t{1:s}\t{2:s}\n'.format(
          sample_time, task.identifier, status)
      self._WritesString(sample)
docs: Takes a sample of the status of a task for profiling.
  
      Args:
        task (Task): a task.
        status (str): status.