class_docstr: Benchmarks for `tf.data.experimental.snapshot()`.
class_docstr_tok: ["Benchmarks","for","`","tf.data.experimental.snapshot","(",")","`","."]
code: def _makeSnapshotDirectory(self):
      tmp_dir = test.get_temp_dir()
      tmp_dir = os.path.join(tmp_dir, "snapshot")
      if os.path.exists(tmp_dir):
          shutil.rmtree(tmp_dir)
      os.mkdir(tmp_dir)
      return tmp_dir
  
file_path: tensorflow/tensorflow/python/data/experimental/benchmarks/snapshot_dataset_benchmark.py
imports: import os
  import shutil
  from tensorflow.python.data.benchmarks import benchmark_base
  from tensorflow.python.data.experimental.ops import snapshot
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the SnapshotDatasetBenchmark obj's underlying member method code with example usage: obj._makeSnapshotDirectory() and returns: tmp_dir