code: def __getitem__(self, index):
      item = self.dataset[index]
      while len(item) > 0 and item[-1] == self.id_to_strip:
          item = item[:-1]
      while len(item) > 0 and item[0] == self.id_to_strip:
          item = item[1:]
      return item
  
imports: from .None import BaseWrapperDataset
label_desc: Use image node_id 2 for calling the StripTokenDataset obj's underlying member method code with example usage: obj.__getitem__(index) and returns: item