Adding doctest for `text-classification` pipeline. (#20262)
Adding doctest for `text-classification` pipeline. (#20262)

* Adding doctest for `text-classification` pipeline.

* Remove nested_simplify.
huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers