code: def Sample(self, tasks_status):
      
      sample_time = time.time()
      sample = '{0:f}\t{1:d}\t{2:d}\t{3:d}\t{4:d}\t{5:d}\n'.format(
          sample_time, tasks_status.number_of_queued_tasks,
          tasks_status.number_of_tasks_processing,
          tasks_status.number_of_tasks_pending_merge,
          tasks_status.number_of_abandoned_tasks,
          tasks_status.total_number_of_tasks)
      self._WritesString(sample)
docs: Takes a sample of the status of queued tasks for profiling.
  
      Args:
        tasks_status (TasksStatus): status information about tasks.