class_docstr: A data module which provides a frequency-category split of the M4 dataset as a standalone dataset.
class_docstr_tok: ["A","data","module","which","provides","a","frequency-category","split","of","the","M4","dataset","as","a","standalone","dataset","."]
code: def __init__(self, **kwargs):
      super().__init__(**kwargs)
      self.freq, self.category = [
          s.capitalize() for s in self.dataset_name.split("_")[1:]
      ]
  
file_path: gluonts/src/gluonts/nursery/few_shot_prediction/src/meta/datasets/m4.py
imports: import json
  import os
  from pathlib import Path
  import numpy
  import pandas
  from gluonts.dataset.repository._util import metadata, save_to_file, to_dict
  from meta.datasets.gluonts import GluonTSDataModule
  from meta.datasets.registry import register_data_module
label_desc: Use image node_id 1 to create a new M4DataModule object from inherited base classes: GluonTSDataModule with example: obj = M4DataModule()