code: def tokenize(self):
      for idx, wrapped_example in tqdm(
          enumerate(self.wrapped_dataset), desc="tokenizing"
      ):
          inputfeatures = InputFeatures(
              **self.tokenizer_wrapper.tokenize_one_example(
                  wrapped_example, self.teacher_forcing
              ),
              **wrapped_example[1],
          )
          tmp = []
          for key in inputfeatures.tensorable_keys:
              value = getattr(inputfeatures, key)
              if value is not None:
                  tmp.append(paddle.to_tensor(value))
          #                     setattr(inputfeatures, key, paddle.to_tensor(value))
          self.tensor_dataset.append(tmp)
  
file_path: OpenPrompt/tutorial/7_ernie_paddlepaddle/dataloader.py
imports: from typing import *
  from tqdm import tqdm
  from collections import defaultdict
  import warnings
  import numpy
  from paddlenlp.data import Stack, Tuple, Pad
  import paddle
  from utils import signature
  from data_utils import InputFeatures
label_desc: Use image node_id 3 for calling the ErniePromptDataLoader obj's underlying member method code with example usage: obj.tokenize() without return types