class_docstr: Apply the history best config
  
  Parameters
  ----------
  records : str, list of str, or iterator of (auto_scheduler.measure.MeasureInput,                                                auto_scheduler.measure.MeasureResult)
      Collection of tuning records.
      If is str, then it should be the filename of a records log file.
      Each row of this file is an encoded record pair. If it is an iterator,
      it can either be a set of str filenames which will be applied jointly,
      or a set of (input, result) tuples.
  n_lines: Optional[int]
      if it is not None, only load the first `n_lines` lines of log.
  include_compatible: bool
      When set to True, compatible records will also be considered.
docstr: Get the entry of the target key and workload key hash in the given best record map.
  
  Parameters
  ----------
  best_records: Dict[str, Dict[str, Dict[str, Any]]]
      The best record map.
  target_key: str
      The first key to the best_records.
  workload_key: str
      The workload key that can be decoded to workload hash and args.
  
  Returns
  -------
  entry: Dict[str, Any]
      The entry in best_records with target key and workload hash.
  workload_hash: str
      The workload hash decoded from workload_key.
  workload_args: Tuple[Any, ...]
      The hashable tuple of workload args decoded from workload_key.
code: def get_workload_entry(best_records, target_key, workload_key):
      """Get the entry of the target key and workload key hash in the given best record map.
  
      Parameters
      ----------
      best_records: Dict[str, Dict[str, Dict[str, Any]]]
          The best record map.
      target_key: str
          The first key to the best_records.
      workload_key: str
          The workload key that can be decoded to workload hash and args.
  
      Returns
      -------
      entry: Dict[str, Any]
          The entry in best_records with target key and workload hash.
      workload_hash: str
          The workload hash decoded from workload_key.
      workload_args: Tuple[Any, ...]
          The hashable tuple of workload args decoded from workload_key.
      """
      workload_hash, workload_args = decode_workload_key(workload_key)
      if target_key not in best_records:
          best_records[target_key] = {}
      if workload_hash not in best_records[target_key]:
          best_records[target_key][workload_hash] = {}
      return (
          best_records[target_key][workload_hash],
          workload_hash,
          workload_args,
      )
  
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 2 for calling the ApplyHistoryBest obj's underlying member method code with example usage: obj.get_workload_entry(best_records, target_key, workload_key) and returns: best_records,  workload_hash,  workload_args