code: def gen_file(rootfile, template, output, **kwargs):
      namespace, root_base, struct_name = meta_gen(readfile(rootfile))
      vc = assemble(
          readfile(template),
          namespace=namespace,
          root_base=root_base,
          struct_name=struct_name,
          **kwargs,
      )
      file = open(output, "w")
      license = open(
          "../../internal/core/build-support/cpp_license.txt"
      ).read()
      file.write(license + vc)
  
imports: from assemble import *
  from meta_gen import *
  import re
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: gen_file(rootfile, template, output) without return types