code: def sort_file(path: Path):
      content = path.read_text().splitlines(keepends=True)
      sorted_content = sort_uniq(content)
      path.write_text("".join(sorted_content))
  
imports: from __future__ import annotations
  from pathlib import Path
label_desc: Use image node_id 3 for calling a global function with example usage: sort_file(path) without return types