docstr: Saves the dataset to disk.
docstr_tok: ["Saves","the","dataset","to","disk","."]
code: def _save_data(path: str, datalab: Datalab) -> None:
      """Saves the dataset to disk."""
      data_path = os.path.join(path, DATA_DIRNAME)
      datalab.data.save_to_disk(data_path)
  
file_path: cleanlab/cleanlab/datalab/internal/serialize.py
imports: from __future__ import annotations
  import os
  import pickle
  import warnings
  from typing import TYPE_CHECKING, Optional
  import pandas
  import cleanlab
  from cleanlab.datalab.internal.data import Data
label_desc: Use image node_id 2 for calling the _Serializer obj's underlying member method code with example usage: obj._save_data(path, datalab) without return types