code: def tokenize(self, sample):
      tokenized_sample = self.tokenizer(
          sample[DataKeys.INPUT],
          max_length=self.max_length,
          truncation=True,
          padding="max_length",
      )
      tokenized_sample = tokenized_sample.data
      if DataKeys.TARGET in sample:
          tokenized_sample[DataKeys.TARGET] = sample[DataKeys.TARGET]
      return tokenized_sample
  
imports: from dataclasses import dataclass
  from flash.core.data.io.input import DataKeys
  from flash.core.integrations.transformers.collate import TransformersCollate
label_desc: Use image node_id 1 for calling the TextClassificationCollate obj's underlying member method code with example usage: obj.tokenize(sample) and returns: tokenized_sample