code: def test_prompt_template_arr_str_no_variables():
      prompt = PromptTemplate(template_str=["Say {foo}"])
      assert prompt.format(foo="bar") == "Say bar"
  
      prompt = PromptTemplate(template_str=["Say {foo} {baz}"])
      assert prompt.format(foo="bar") == ""
  
      prompt = PromptTemplate(template_str=["Say {foo}", " {baz}"])
      assert prompt.format(foo="bar") == "Say bar"
  
      prompt = PromptTemplate(template_str=["Say {foo}", " {baz}"])
      assert prompt.format(baz="qux") == " qux"
  
      prompt = PromptTemplate(template_str=["Say foo", ", and say bar"])
      assert prompt.format() == "Say foo, and say bar"
  
      prompt = PromptTemplate(
          template_str=[
              "Say {foo} {foo}",
              ", and {foo}",
              ", and {foo} again",
          ]
      )
      assert (
          prompt.format(foo="bar")
          == "Say bar bar, and bar, and bar again"
      )
  
      prompt = PromptTemplate(template_str=["Say {foo}", " {baz}"])
      assert prompt.format(foo="bar", baz="qux") == "Say bar qux"
  
      prompt = PromptTemplate(template_str=["Say {foo}", " {baz}"])
      assert prompt.format(foo="bar", baz=None) == "Say bar"
  
imports: from mlflow.metrics.genai.prompt_template import PromptTemplate
label_desc: Use image node_id 2 for calling a global function with example usage: test_prompt_template_arr_str_no_variables() without return types