code: def rewrite_frontend_version_file():
      """Current associated version of NPM modules deck.gl and @deck.gl/jupyter-widget"""
      lerna_version = json.loads(open("../../lerna.json").read())[
          "version"
      ]
      with open("pydeck/frontend_semver.py", "w+") as f:
          t = jinja2.Template("DECKGL_SEMVER = '{{semver_str}}'")
          contents = t.render(semver_str=str(lerna_version))
          f.write(contents)
      return lerna_version
  
file_path: deck.gl/bindings/pydeck/bump_version.py
imports: import argparse
  import json
  import sys
  import semver
  import jinja2
  from pydeck._version import __version__
label_desc: Use image node_id 3 for calling a global function with example usage: rewrite_frontend_version_file() and returns: lerna_version