code: def run_file(cmd: code_writer_cmd, file: Path, update_year: bool):
      content = file.read_text("utf-8")
      path = str(file.relative_to(sa_path)).replace(
          "\\", "/"
      )  # handle windows
      path_comment = f"# {path}"
      has_license = bool(license_re.search(content))
      if file_re.match(content.strip()):
          if has_license:
              to_sub = path_comment
          else:
              to_sub = path_comment + license_
          content = file_re.sub(to_sub, content, count=1)
      else:
          content = (
              path_comment
              + ("\n" if has_license else license_)
              + content
          )
  
      if has_license and update_year:
          content = license_re.sub(
              rf"Copyright (C) \1-{this_year} the SQLAlchemy "
              "authors and contributors",
              content,
              1,
          )
      cmd.write_output_file_from_text(content, file)
  
imports: from datetime import date
  from pathlib import Path
  import re
  from sqlalchemy.util.tool_support import code_writer_cmd
label_desc: Use image node_id 1 for calling a global function with example usage: run_file(cmd, file, update_year) without return types