code: def test_text_to_text_model_from_pipeline():
      pipe = transformers.pipeline(model="sshleifer/bart-tiny-random")
      io = gr.Interface.from_pipeline(pipe)
      output = io(
          "My name is Sylvain and I work at Hugging Face in Brooklyn"
      )
      assert isinstance(output, str)
  
imports: import pytest
  import transformers
  import gradio
label_desc: Use image node_id 1 for calling a global function with example usage: test_text_to_text_model_from_pipeline() without return types