<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/testing/test_utils.py#L57-L62) |

Context manager for a temporary directory.

    @contextlib.contextmanager
    tfds.testing.tmp_dir(
        dirname=None
    )