code: def prerelease(ctx, version):
      """
      Release a pre-release version
  
      Running this task will:
       - Bump the version number
       - Push a release to pypi and npm
      """
      set_pyversion(version)
      set_jsversion(version)
      release_python_sdist()
      os.chdir(os.path.join(GMAPS_DIR, "js"))
      try:
          run("npm publish")
      finally:
          os.chdir(GMAPS_DIR)
  
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 1 for calling a global function with example usage: prerelease(ctx, version) without return types