class_docstr: A dataset configuration references a dataset containing multiple time
  series.
docstr: Returns basic statistics of the dataset.
  
  Args:
      root: The directory which contains the stats files.
docstr_tok: ["Returns","basic","statistics","of","the","dataset",".","Args",":","root",":","The","directory","which","contains","the","stats","files","."]
code: def stats(
      self, root: str | Path = DEFAULT_DATA_STATS_PATH
  ) -> dict[str, float]:
      """
      Returns basic statistics of the dataset.
  
      Args:
          root: The directory which contains the stats files.
      """
      file = Path(root) / f"{self.name()}.json"
      with file.open("r") as f:
          return json.load(f)
  
imports: from __future__ import annotations
  import json
  import shutil
  from dataclasses import dataclass, field
  from pathlib import Path
  from typing import cast, Dict, Tuple, Union
  import numpy
  import pandas
  from gluonts.dataset.common import Dataset, FileDataset, MetaData
  from numpy import ma
  from tsbench.constants import DEFAULT_DATA_CATCH22_PATH, DEFAULT_DATA_PATH, DEFAULT_DATA_STATS_PATH
label_desc: Use image node_id 9 for calling the DatasetConfig obj's underlying member method code with example usage: obj.stats(root) and returns: json