code: def test_techwriter_append():
      print(fitz.__doc__)
      doc = fitz.open()
      page = doc.new_page()
      tw = fitz.TextWriter(page.rect)
      text = "Red rectangle = TextWriter.text_rect, blue circle = .last_point"
      r = tw.append((100, 100), text)
      print(f"r={r!r}")
      tw.write_text(page)
      page.draw_rect(tw.text_rect, color=fitz.pdfcolor["red"])
      page.draw_circle(tw.last_point, 2, color=fitz.pdfcolor["blue"])
      path = f"{scriptdir}/resources/test_techwriter_append.pdf"
      doc.ez_save(path)
      print(f"Have saved to: {path}")
  
imports: import io
  import os
  import fitz
  import pickle
label_desc: Use image node_id 20 for calling a global function with example usage: test_techwriter_append() without return types