class_docstr: The callback that prints a table of current progress.
class_docstr_tok: ["The","callback","that","prints","a","table","of","current","progress","."]
code: def pre_tune(self, task_scheduler, task_id):
      if task_scheduler.tune_option.verbose < 1:
          return
  
      _ffi_api.PrintTitle("Task Scheduler")
      print(
          "|  ID  "
          "|                       Task Description                        "
          "| Latency (ms) | Speed (GFLOPS) | Trials |"
      )
      print(
          "----------------------------------------------------------------"
          "-------------------------------------------------"
      )
  
      # content
      for i in range(len(task_scheduler.tasks)):
          id_str = f"{i}"
          latency_str = (
              "%.3f" % (1e3 * task_scheduler.best_costs[i])
              if task_scheduler.best_costs[i] < 1e9
              else "-"
          )
          task_desc = task_scheduler.tasks[i].desc
          speed_str = (
              "%.2f"
              % (
                  task_scheduler.tasks[i].compute_dag.flop_ct
                  / task_scheduler.best_costs[i]
                  / 1e9
              )
              if task_scheduler.best_costs[i] < 1e9
              else "-"
          )
          trials_str = "%d" % (
              task_scheduler.task_cts[i]
              * task_scheduler.num_measures_per_round
          )
          print(
              "| %4s | %61s | %12s | % 14s | %6s |"
              % (id_str, task_desc, latency_str, speed_str, trials_str)
          )
      print(
          "----------------------------------------------------------------"
          "-------------------------------------------------"
      )
  
      # overall info
      if all(cost < 1e9 for cost in task_scheduler.best_costs):
          total_latency_str = "%.3f" % (task_scheduler.cur_score * 1e3)
      else:
          total_latency_str = "-"
      print(
          "Estimated total latency: %s ms\tTrials: %d\tUsed time : %.0f s\tNext ID: %d\t"
          % (
              total_latency_str,
              task_scheduler.ct,
              time.time() - task_scheduler.tic,
              task_id,
          )
      )
  
imports: import os
  import time
  import math
  import logging
  import numpy
  from .search_policy import SearchPolicy, SketchPolicy, PreloadMeasuredStates
  from .cost_model import RandomModel, XGBModel
  from .utils import array_mean
  from .measure import ProgramMeasurer
  from .measure_record import RecordReader
  from .None import _ffi_api
label_desc: Use image node_id 1 for calling the PrintTableInfo obj's underlying member method code with example usage: obj.pre_tune(task_scheduler, task_id) without return types