code: def captured_output():
      new_out, new_err = io.StringIO(), io.StringIO()
      old_out, old_err = sys.stdout, sys.stderr
      try:
          sys.stdout, sys.stderr = new_out, new_err
          yield sys.stdout, sys.stderr
      finally:
          sys.stdout, sys.stderr = old_out, old_err
  
imports: import io
  import sys
  import unittest.mock
  from contextlib import contextmanager
  from functools import partial
  from string import capwords
  import httpx
  import pytest
  import gradio
  from gradio.blocks import Blocks
  from gradio.components import Image, Textbox
  from gradio.interface import Interface, TabbedInterface, close_all, os
  from gradio.layouts import TabItem, Tabs
  from gradio.utils import assert_configs_are_equivalent_besides_ids
label_desc: Use image node_id 1 for calling a global function with example usage: captured_output() without return types