class_docstr: Base class of dispatch context.
code: def __exit__(self, ptype, value, trace):
      DispatchContext.current = self._old_ctx
  
imports: import logging
  import pathlib
  from collections.abc import Iterable
  import numpy
  from tvm.contrib.utils import tempdir
  from tvm.tir.expr import FloatImm
  from .cost_model import RandomModel, XGBModel
  from .measure import LocalRPCMeasureContext
  from .measure_record import RecordToFile, load_records
  from .search_policy import PreloadMeasuredStates, SketchPolicy
  from .search_task import SearchTask, TuningOptions
  from .utils import calc_workload_dis_factor, decode_workload_key
label_desc: Use image node_id 6 for calling the DispatchContext obj's underlying member method code with example usage: obj.__exit__(ptype, value, trace) without return types