class_docstr: Helper class to deduplicate samples.
  
  Different from the deduplication on the HPO side,
  this class simply checks if a sample has been tried before, and does nothing else.
class_docstr_tok: ["Helper","class","to","deduplicate","samples",".","Different","from","the","deduplication","on","the","HPO","side",",","this","class","simply","checks","if","a","sample","has","been","tried","before",",","and","does","nothing","else","."]
docstr: Remove a sample from the history.
docstr_tok: ["Remove","a","sample","from","the","history","."]
code: def remove(self, sample: Any) -> None:
      """
      Remove a sample from the history.
      """
      self._history.remove(_to_hashable(sample))
  
file_path: nni/nni/nas/strategy/utils.py
imports: from __future__ import annotations
  import logging
  from typing import Any, Type, TypeVar, Callable
  from nni.mutable import SampleValidationError
label_desc: Use image node_id 3 for calling the DeduplicationHelper obj's underlying member method code with example usage: obj.remove(sample) without return types