code: def set_pyversion(version):
      version = normalize_version(version)
      with open(
          os.path.join(GMAPS_DIR, "gmaps", "_version.py"), "w"
      ) as f:
          f.write(VERSION_TEMPLATE.format(version_string=version))
  
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 8 for calling a global function with example usage: set_pyversion(version) without return types