code: def merge_prompts(style_prompt: str, prompt: str) -> str:
      if "{prompt}" in style_prompt:
          res = style_prompt.replace("{prompt}", prompt)
      else:
          parts = filter(None, (prompt.strip(), style_prompt.strip()))
          res = ", ".join(parts)
  
      return res
  
imports: import csv
  import fnmatch
  import os
  import os.path
  import typing
  import shutil
label_desc: Use image node_id 1 for calling a global function with example usage: merge_prompts(style_prompt, prompt) and returns: res