<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/core/file_writers.py#L23-L49) |

Writes `examples` to a file at `output_path` with type `file_type`.

    tfm.core.file_writers.write_small_dataset(
        examples: Sequence[Union[tf.train.Example, tf.train.SequenceExample]],
        output_path: str,
        file_type: str = 'tfrecord'
    ) -> None

CAVEAT: This function is not recommended for writing large datasets, since it
will loop through `examples` and perform write operation sequentially.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `examples` | List of tf.train.Example or tf.train.SequenceExample. |
| `output_path` | Output path for the dataset. |
| `file_type` | A string indicating the file format, could be: 'tfrecord', 'tfrecords', 'tfrecord_compressed', 'tfrecords_gzip', 'riegeli'. The string is case insensitive. |

<br />