code: def bump(path, pattern, repl, check=True):
      with open(path) as fin:
          contents = fin.read()
  
      new_contents = pattern.sub(repl, contents)
  
      if check and new_contents == contents:
          print("*" * 79)
          print(
              "WARNING: contents of %r unchanged after version bump"
              % path
          )
          print("*" * 79)
  
      with open(path, "w") as fout:
          fout.write(new_contents)
  
imports: import os.path
  import re
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: bump(path, pattern, repl, check) without return types