code: def __init__(self, config, dataset_type, imdb_idx):
      try:
          from datasets import load_dataset
      except ModuleNotFoundError:
          logger.error(
              "Please install 'datasets' library by running `pip install datasets`."
          )
          raise
  
      dataset_name = f"glue_{config.task}"
      super().__init__(dataset_name, config, dataset_type, imdb_idx)
  
      if dataset_type == "val":
          # datasets library uses validation as val set.
          dataset_type = "validation"
  
      # For MNLI-MM, set train to MNLI-M train
      task = config.task
      if config.task.startswith("mnli") and dataset_type == "train":
          task = "mnli"
  
      self.dataset = retry_n(
          MAX_RETRIES, load_dataset, "glue", task, split=dataset_type
      )
  
file_path: mmf/mmf/datasets/builders/glue/builder.py
imports: import logging
  import torch
  from mmf.common.registry import registry
  from mmf.common.sample import Sample
  from mmf.datasets.base_dataset import BaseDataset
  from mmf.datasets.mmf_dataset_builder import MMFDatasetBuilder
  from mmf.utils.general import retry_n
label_desc: Use image node_id 1 to create a new GLUEDataset object from inherited base classes: BaseDataset with example: obj = GLUEDataset(config, dataset_type, imdb_idx)