class_docstr: Helper class to record logits and force the given label token ids
class_docstr_tok: ["Helper","class","to","record","logits","and","force","the","given","label","token","ids"]
code: def __init__(self, label_ids, tokenizer):
      self.recorded_scores = []
      self.label_ids = label_ids
      self.tokenizer = tokenizer
  
imports: import importlib
  import warnings
  from string import Formatter
  import numpy
  import torch
  from sklearn.base import BaseEstimator, ClassifierMixin
  from sklearn.utils import check_random_state
  from sklearn.utils.validation import check_is_fitted
  from transformers import AutoConfig, AutoTokenizer, LogitsProcessor
  from skorch.exceptions import LowProbabilityError
  from skorch.llm.prompts import DEFAULT_PROMPT_FEW_SHOT, DEFAULT_PROMPT_ZERO_SHOT, DELIM
label_desc: Use image node_id 1 to create a new _LogitsRecorder object from inherited base classes: LogitsProcessor with example: obj = _LogitsRecorder(label_ids, tokenizer)