docstr: Called to initialize data. Use the call to construct features
docstr_tok: ["Called","to","initialize","data",".","Use","the","call","to","construct","features"]
code: def prepare_data(self):
      "Called to initialize data. Use the call to construct features"
      args = self.hparams
      processor = processors[args.task]()
      self.labels = processor.get_labels()
  
      for mode in ["train", "dev"]:
          cached_features_file = self._feature_file(mode)
          if (
              os.path.exists(cached_features_file)
              and not args.overwrite_cache
          ):
              logger.info(
                  "Loading features from cached file %s",
                  cached_features_file,
              )
          else:
              logger.info(
                  "Creating features from dataset file at %s",
                  args.data_dir,
              )
              examples = (
                  processor.get_dev_examples(args.data_dir)
                  if mode == "dev"
                  else processor.get_train_examples(args.data_dir)
              )
              features = convert_examples_to_features(
                  examples,
                  self.tokenizer,
                  max_length=args.max_seq_length,
                  label_list=self.labels,
                  output_mode=args.glue_output_mode,
              )
              logger.info(
                  "Saving features into cached file %s",
                  cached_features_file,
              )
              torch.save(features, cached_features_file)
  
imports: import argparse
  import glob
  import logging
  import os
  import time
  from argparse import Namespace
  import numpy
  import torch
  from lightning_base import BaseTransformer, add_generic_args, generic_train
  from torch.utils.data import DataLoader, TensorDataset
  from transformers import glue_compute_metrics
  from transformers import glue_convert_examples_to_features
  from transformers import glue_output_modes, glue_tasks_num_labels
  from transformers import glue_processors
label_desc: Use image node_id 4 for calling the GLUETransformer obj's underlying member method code with example usage: obj.prepare_data() without return types