code: def test_interface_in_blocks():
      pipe1 = transformers.pipeline(model="sshleifer/bart-tiny-random")
      pipe2 = transformers.pipeline(model="sshleifer/bart-tiny-random")
      with gr.Blocks() as demo:
          with gr.Tab("Image Inference"):
              gr.Interface.from_pipeline(pipe1)
          with gr.Tab("Image Inference"):
              gr.Interface.from_pipeline(pipe2)
      demo.launch(prevent_thread_lock=True)
      demo.close()
  
imports: import pytest
  import transformers
  import gradio
label_desc: Use image node_id 2 for calling a global function with example usage: test_interface_in_blocks() without return types