class_docstr: A wrapper for logit warpers or processors without heterogeneous parameter support.
  Args:
      processors (`Dict[int, Union[LogitsProcessor, LogitsWarper]]`):
          A mapping of sample indices to logit warpers or processors, to be run sequentially.
code: def filter(self, indices):
      new_processors = {}
      for i, idx in enumerate(indices):
          if idx in self.processors:
              new_processors[i] = self.processors[idx]
  
      if new_processors:
          self.processors = new_processors
          return self
      return None
  
imports: import math
  import torch
  from functools import lru_cache
  from typing import Optional, List, Dict, Union
  from transformers import LogitsWarper, LogitsProcessor, TemperatureLogitsWarper, TopKLogitsWarper, TopPLogitsWarper, TypicalLogitsWarper
label_desc: Use image node_id 3 for calling the HeterogeneousProcessorWrapper obj's underlying member method code with example usage: obj.filter(indices) and returns: None, self