code: def print_json(json_file, output_file):
      MANDATOTRY_FIELDS_MAP = {
          "ARCADIA_TAG": "Arcadia-Tag",
          "ARCADIA_PATCH_NUMBER": "Arcadia-Patch-Number",
          "ARCADIA_SOURCE_URL": "Arcadia-Source-URL",
          "ARCADIA_SOURCE_REVISION": "Arcadia-Source-Revision",
          "ARCADIA_SOURCE_HG_HASH": "Arcadia-Source-Hash",
          "ARCADIA_SOURCE_LAST_CHANGE": "Arcadia-Source-Last-Change",
          "ARCADIA_SOURCE_LAST_AUTHOR": "Arcadia-Source-Last-Author",
          "BRANCH": "Branch",
          "BUILD_HOST": "Build-Host",
          "BUILD_USER": "Build-User",
          "PROGRAM_VERSION": "Program-Version-String",
          "SCM_DATA": "SCM-String",
          "VCS": "Version-Control-System",
      }
  
      SVN_REVISION = "SVN_REVISION"
  
      SVN_FIELDS_MAP = {
          SVN_REVISION: "SVN-Revision",
          "SVN_ARCROOT": "SVN-Arcroot",
          "SVN_TIME": "SVN-Time",
      }
  
      OPTIONAL_FIELDS_MAP = {
          "BUILD_TIMESTAMP": "Build-Timestamp",
          "CUSTOM_VERSION": "Custom-Version-String",
          "DIRTY": "Working-Copy-State",
      }
  
      ext_json = {}
  
      for k in MANDATOTRY_FIELDS_MAP:
          ext_json[MANDATOTRY_FIELDS_MAP[k]] = json_file[k]
  
      if SVN_REVISION in json_file:
          for k in SVN_FIELDS_MAP:
              ext_json[SVN_FIELDS_MAP[k]] = json_file[k]
  
      for k in OPTIONAL_FIELDS_MAP:
          if k in json_file and json_file[k]:
              ext_json[OPTIONAL_FIELDS_MAP[k]] = json_file[k]
  
      with open(output_file, "w") as f:
          json.dump(ext_json, f, sort_keys=True, indent=4)
  
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 11 for calling a global function with example usage: print_json(json_file, output_file) without return types