code: def apply_template(template, data):
      if template.count(marker) != 1:
          raise ValueError("Invalid template")
      return template.replace(marker, expand(data))
  
label_desc: Use image node_id 2 for calling a global function with example usage: apply_template(template, data) and returns: template