code: def test_interpolation():
      value = Template(" {} ").format(HTML("<b>hello</b>"))
  
      assert to_formatted_text(value) == [
          ("", " "),
          ("class:b", "hello"),
          ("", " "),
      ]
  
      value = Template("a{}b{}c").format(HTML("<b>hello</b>"), "world")
  
      assert to_formatted_text(value) == [
          ("", "a"),
          ("class:b", "hello"),
          ("", "b"),
          ("", "world"),
          ("", "c"),
      ]
  
file_path: catboost/contrib/python/prompt-toolkit/py3/tests/test_formatted_text.py
imports: from __future__ import annotations
  from prompt_toolkit.formatted_text import ANSI, HTML, FormattedText, PygmentsTokens, Template, merge_formatted_text, to_formatted_text
  from prompt_toolkit.formatted_text.utils import split_lines
label_desc: Use image node_id 7 for calling a global function with example usage: test_interpolation() without return types