code: def resume_search(task, log_file):
      print("Resume search:")
      cost_model = auto_scheduler.XGBModel()
      cost_model.update_from_file(log_file)
      search_policy = auto_scheduler.SketchPolicy(
          task,
          cost_model,
          init_search_callbacks=[
              auto_scheduler.PreloadMeasuredStates(log_file)
          ],
      )
      tune_option = auto_scheduler.TuningOptions(
          num_measure_trials=5,
          measure_callbacks=[auto_scheduler.RecordToFile(log_file)],
      )
      task.tune(tune_option, search_policy=search_policy)
  
imports: import numpy
  import tvm
  from tvm import te, auto_scheduler
label_desc: Use image node_id 2 for calling a global function with example usage: resume_search(task, log_file) without return types