<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#L707-L718) |

Mocks datetime.datetime.now().

    @contextlib.contextmanager
    tfds.testing.set_current_datetime(
        now_datetime: datetime.datetime
    ) -> Iterator[None]