code: def generate_file(generate_path: Path, output_path: Path) -> None:
      status, output = subprocess.getstatusoutput(
          f"python {generate_path}"
      )
      assert status == 0, f"Error: {output}"
      with open(output_path, "w") as f:
          f.write(
              "# DO NOT EDIT -- GENERATED BY: `generate-tool.py --generate`"
          )
          f.write(output)
  
file_path: wandb/tools/generate-tool.py
imports: import argparse
  import contextlib
  import filecmp
  import os
  import subprocess
  import tempfile
  from pathlib import Path, PurePath
  from typing import Iterator, List
label_desc: Use image node_id 2 for calling a global function with example usage: generate_file(generate_path, output_path) without return types