code: def rewrite_version_file(semver):
      with open("pydeck/_version.py", "w+") as f:
          t = jinja2.Template("__version__ = '{{semver_str}}'")
          contents = t.render(semver_str=str(semver))
          f.write(contents)
  
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 2 for calling a global function with example usage: rewrite_version_file(semver) without return types