code: def test_print_container(tmpdir):
      # Call `print_container`, render to a dummy file.
      f = tmpdir.join("output")
      with open(f, "w") as fd:
          print_container(
              Frame(TextArea(text="Hello world!\n"), title="Title"),
              file=fd,
          )
  
      # Verify rendered output.
      with open(f) as fd:
          text = fd.read()
          assert "Hello world" in text
          assert "Title" in text
  
imports: from __future__ import annotations
  from prompt_toolkit.shortcuts import print_container
  from prompt_toolkit.shortcuts.prompt import _split_multiline_prompt
  from prompt_toolkit.widgets import Frame, TextArea
label_desc: Use image node_id 2 for calling a global function with example usage: test_print_container(tmpdir) without return types