code: def jinja2_render(config, input, output):
      with open(input, "r", encoding="utf-8") as f:
          template = jinja2.Template(
              f.read(),
              undefined=jinja2.StrictUndefined,
              trim_blocks=True,
              lstrip_blocks=True,
          )
      with open(output, "w", encoding="utf-8") as f:
          f.write(template.render(**config))
  
imports: import json
  import sys
  import jinja2
label_desc: Use image node_id 1 for calling a global function with example usage: jinja2_render(config, input, output) without return types