code: def write_header(
      generator: str,
      sources: list[str],
      outfile: TextIO,
      comment: str = "//",
  ) -> None:
      outfile.write(
          f"""{comment} This file is generated by {root_relative_path(generator)}
  {comment} from:
  {comment}   {", ".join(root_relative_path(src) for src in sources)}
  {comment} Do not edit!
  """
      )
  
file_path: cpython/Tools/cases_generator/generators_common.py
imports: from pathlib import Path
  from typing import TextIO
  from analyzer import Instruction, Uop, analyze_files, Properties, Skip
  from cwriter import CWriter
  from typing import Callable, Mapping, TextIO, Iterator
  from lexer import Token
  from stack import StackOffset, Stack
label_desc: Use image node_id 2 for calling a global function with example usage: write_header(generator, sources, outfile, comment) without return types