code: def update_version_in_file(fname: str, version: str, file_type: str):
      """
      Update the version of Transformers in one file.
  
      Args:
          fname (`str`): The path to the file where we want to update the version.
          version (`str`): The new version to set in the file.
          file_type (`str`): The type of the file (should be a key in `REPLACE_PATTERNS`).
      """
      with open(fname, "r", encoding="utf-8", newline="\n") as f:
          code = f.read()
      re_pattern, replace = REPLACE_PATTERNS[file_type]
      replace = replace.replace("VERSION", version)
      code = re_pattern.sub(replace, code)
      with open(fname, "w", encoding="utf-8", newline="\n") as f:
          f.write(code)
  
file_path: transformers/utils/release.py
imports: import argparse
  import os
  import re
  import packaging.version
label_desc: Use image node_id 1 for calling a global function with example usage: update_version_in_file(fname, version, file_type) without return types