code: def _group_all(self, dataset: Dataset) -> Dataset:
      if self.align_data:
          funcs = {"target": self._align_data_entry}
  
      if self.num_test_dates is None:
          grouped_dataset = self._prepare_train_data(dataset, funcs)
      else:
          grouped_dataset = self._prepare_test_data(dataset)
      return grouped_dataset
  
file_path: gluonts/src/gluonts/nursery/robust-mts-attack/multivariate/datasets/grouper.py
imports: import logging
  import numpy
  import pandas
  from gluonts.dataset.common import ListDataset, DataEntry, Dataset
label_desc: Use image node_id 3 for calling the Grouper obj's underlying member method code with example usage: obj._group_all(dataset) and returns: grouped_dataset