class_docstr: The base class of task scheduler callback functions.
class_docstr_tok: ["The","base","class","of","task","scheduler","callback","functions","."]
docstr: The callback after tuning each task.
  
  Parameters
  ----------
  task_scheduler: TaskScheduler
      The task scheduler.
  task_id: int
      The task ID be tuned.
docstr_tok: ["The","callback","after","tuning","each","task",".","Parameters","--","--","--","--","--","task_scheduler",":","TaskScheduler","The","task","scheduler",".","task_id",":","int","The","task","ID","be","tuned","."]
code: def post_tune(self, task_scheduler, task_id):
      """The callback after tuning each task.
  
      Parameters
      ----------
      task_scheduler: TaskScheduler
          The task scheduler.
      task_id: int
          The task ID be tuned.
      """
  
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 2 for calling the TaskSchedulerCallback obj's underlying member method code with example usage: obj.post_tune(task_scheduler, task_id) without return types