code: def print_go(json_file, output_file, arc_project_prefix):
      def gen_map(info):
          lines = []
          for k, v in info.items():
              lines.append(_Formatting.escaped_go_map_key(k, v))
          return lines
  
      with open(output_file, "w") as f:
          f.write(
              "\n".join(
                  [
                      "// Code generated by vcs_info.py; DO NOT EDIT.",
                      "",
                      "package main",
                      'import "{}library/go/core/buildinfo"'.format(
                          arc_project_prefix
                      ),
                      "func init() {",
                      "   buildinfo.InitBuildInfo(map[string]string {",
                  ]
                  + gen_map(json_file)
                  + ["})", "}"]
              )
              + "\n"
          )
  
imports: import base64
  import json
  import os
  import re
  import sys
  import shutil
  import tempfile
  import textwrap
  import zipfile
label_desc: Use image node_id 10 for calling a global function with example usage: print_go(json_file, output_file, arc_project_prefix) and returns: lines