<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#L613-L621) |

To mock example_serializer.ExampleSerializer.

    tfds.testing.DummySerializer(
        specs
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `example_specs` | Dataclass field |

<br />

## Methods

### `serialize_example`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/testing/test_utils.py#L620-L621)

    serialize_example(
        example
    )

Serialize the given example.

<br />

<br />

<br />

| Args ||
|---|---|
| `example` | Nested `dict` containing the input to serialize. The input structure and values dtype/shape must match the `example_specs` provided at construction. |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| the serialized example. ||

<br />

### `__eq__`

    __eq__(
        other
    )

Return self==value.