class_docstr: A type-safe wrapper for a list of quantile forecasts, stored as NumPy
  arrays.
class_docstr_tok: ["A","type-safe","wrapper","for","a","list","of","quantile","forecasts",",","stored","as","NumPy","arrays","."]
docstr: Saves the forecasts to the specified path.
  
  Args:
      path: The path of the file where to save the forecasts to.
docstr_tok: ["Saves","the","forecasts","to","the","specified","path",".","Args",":","path",":","The","path","of","the","file","where","to","save","the","forecasts","to","."]
code: def save(self, path: Path) -> None:
      """
      Saves the forecasts to the specified path.
  
      Args:
          path: The path of the file where to save the forecasts to.
      """
      assert path.is_dir()
  
      if not path.exists():
          path.mkdir()
      with (path / "values.npy").open("wb+") as f:
          np.save(f, self.values)
      with (path / "metadata.npz").open("wb+") as f:
          np.save(
              f,
              dict(
                  start_dates=self.start_dates,
                  item_ids=self.item_ids,
                  freq=self.freq,
                  quantiles=self.quantiles,
              ),
          )
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/forecasts/quantile.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from pathlib import Path
  from typing import List
  import numpy
  import numpy.typing
  import pandas
  from gluonts.model.forecast import QuantileForecast
  from gluonts.time_feature import get_seasonality
label_desc: Use image node_id 8 for calling the QuantileForecasts obj's underlying member method code with example usage: obj.save(path) without return types