code: def set_jsversion(version):
      version = normalize_version(version)
      package_json_path = os.path.join(GMAPS_DIR, "js", "package.json")
      with open(package_json_path) as f:
          package_json = f.readlines()
      for iline, line in enumerate(package_json):
          if '"version"' in line:
              package_json[iline] = '  "version": "{}",\n'.format(
                  version
              )
      with open(package_json_path, "w") as f:
          f.writelines(package_json)
  
imports: import os
  import tempfile
  import itertools
  import shutil
  import re
  from invoke import task, run
  from subprocess import call
  import semver
label_desc: Use image node_id 9 for calling a global function with example usage: set_jsversion(version) without return types