class_docstr: Apply the history best config
  
  Parameters
  ----------
  records : None, Records, or iterator of Records objects, where a
            Records object is a path-like object, a file-like object,
            or an iterator of (MeasureInput, MeasureResult).
  
      Collection of tuning records. If multiple Records objects are passed, their
      contents will be merged.
class_docstr_tok: ["Apply","the","history","best","config","Parameters","--","--","--","--","--","records",":","None",",","Records",",","or","iterator","of","Records","objects",",","where","a","Records","object","is","a","path-like","object",",","a","file-like","object",",","or","an","iterator","of","(","MeasureInput",",","MeasureResult",")",".","Collection","of","tuning","records",".","If","multiple","Records","objects","are","passed",",","their","contents","will","be","merged","."]
code: def __init__(self, records: Union[None, Records, Iterable[Records]]):
      super(ApplyHistoryBest, self).__init__()
  
      self.best_by_targetkey = {}
      self.best_by_model = {}
      self._best_user_defined = {}
  
      if records:
          self.load(records)
  
imports: from __future__ import absolute_import
  from io import TextIOBase
  import logging
  from os import PathLike
  from pathlib import Path
  from typing import List, Iterable, Tuple, Union
  import numpy
  from .space import FallbackConfigEntity
  from ..None import env
  from ..measure import MeasureInput, MeasureResult
label_desc: Use image node_id 1 to create a new ApplyHistoryBest object from inherited base classes: DispatchContext with example: obj = ApplyHistoryBest(records)