parameters: (dataset)
return_statement: return dataset_ops._VariantDataset(new_variant_tensor, dataset.element_spec)
docstring: Returns a cloned version of `dataset`.
docstring_summary: Returns a cloned version of `dataset`.
docstring_tokens: Returns a cloned version of dataset .
function: def _clone_dataset(dataset):
    """Returns a cloned version of `dataset`."""
    variant_tensor_ops = traverse.obtain_all_variant_tensor_ops(dataset)
    remap_dict = _clone_helper(dataset._variant_tensor.op, variant_tensor_ops)
    new_variant_tensor = remap_dict[dataset._variant_tensor.op].outputs[0]
    return dataset_ops._VariantDataset(new_variant_tensor, dataset.element_spec)
function_tokens: def _clone_dataset ( dataset ) : variant_tensor_ops = traverse . obtain_all_variant_tensor_ops ( dataset ) remap_dict = _clone_helper ( dataset . _variant_tensor . op , variant_tensor_ops ) new_variant_tensor = remap_dict [ dataset . _variant_tensor . op ] . outputs [ 0 ] return dataset_ops . _VariantDataset ( new_variant_tensor , dataset . element_spec )