code: def postrelease(ctx, version):
      """
      Finalise the release
  
      Running this task will:
       - commit the version changes to source control
       - tag the commit
       - push changes to master
      """
      run("git add gmaps/_version.py")
      run("git add js/package.json")
      run('git commit -m "Bump version to {}"'.format(version))
      run("git tag -a v{} -F changelog.tmp".format(version))
      run("git push origin master --tags")
      new_version = semver.bump_patch(version) + "-dev"
      set_pyversion(new_version)
      set_jsversion(new_version)
      run("git add gmaps/_version.py")
      run("git add js/package.json")
      run('git commit -m "Back to dev"')
      run("git push origin master")
  
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 3 for calling a global function with example usage: postrelease(ctx, version) without return types