class_docstr: "A dataset that loads previously saved dataset.
class_docstr_tok: ["``","A","dataset","that","loads","previously","saved","dataset","."]
code: def __init__(self, dataset, path, shard_func, compression):
      self._element_spec = dataset.element_spec
      self._shard_func = shard_func
      (
          dataset,
          shard_func,
          use_shard_func,
          path,
      ) = set_save_dataset_attributes(dataset, shard_func, path)
      variant_tensor = ged_ops.save_dataset_v2(
          dataset._variant_tensor,  # pylint: disable=protected-access
          path=path,
          shard_func_other_args=shard_func.captured_inputs,
          shard_func=shard_func,
          use_shard_func=use_shard_func,
          compression=compression,
          output_types=structure.get_flat_tensor_types(
              dataset.element_spec
          ),
          output_shapes=structure.get_flat_tensor_shapes(
              dataset.element_spec
          ),
      )
      super().__init__(dataset, variant_tensor)
  
file_path: tensorflow-upstream/tensorflow/python/data/ops/save_op.py
imports: import os
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_management
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import structured_function
  from tensorflow.python.data.util import structure
  from tensorflow.python.eager import context
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import gen_experimental_dataset_ops
  from tensorflow.python.platform import gfile
  from tensorflow.python.saved_model import nested_structure_coder
label_desc: Use image node_id 1 to create a new _SaveDataset object from inherited base classes: dataset_ops with example: obj = _SaveDataset(dataset, path, shard_func, compression)