code: def test_fstring_with_vars_in_excess():
      fstring = FString(template="Hello {name}", variables=["name"])
      output = fstring.run(template="Goodbye!", name="Alice")
      assert output == {"string": "Goodbye!"}
  
imports: import pytest
  from haystack.testing.sample_components import FString
label_desc: Use image node_id 5 for calling a global function with example usage: test_fstring_with_vars_in_excess() without return types