code: def render(tpl_path, context):
      path, filename = os.path.split(tpl_path)
      return (
          jinja2.Environment(
              loader=jinja2.FileSystemLoader(path or "./")
          )
          .get_template(filename)
          .render(context)
      )
  
imports: import os
  import jinja2
  import glob
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: render(tpl_path, context) and returns: jinja2