code: def temp_fname() -> Iterator[PurePath]:
      try:
          f = tempfile.NamedTemporaryFile(delete=False)
          tmp_name = f.name
          f.close()
          yield Path(tmp_name)
      finally:
          os.unlink(tmp_name)
  
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 6 for calling a global function with example usage: temp_fname() without return types