<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/core/transform/transform_lib.py#L228-L242) |

Applies `fn` that can return any number of examples based on an input.

    tfds.transform.apply_do_fn(
        fn: Callable[[Any], Iterator[Any]]
    ) -> ExampleTransformFn

A do_fn can be used for multiple purposes such as augmentations, but also to
filter examples.

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `fn` | the function that takes an example and outputs 0 or more examples. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| function that can be applied to perform a do fn. ||

<br />