code: def test_wrapcontents():
      doc = fitz.open(filename)
      page = doc[0]
      page.wrap_contents()
      xref = page.get_contents()[0]
      cont = page.read_contents()
      doc.update_stream(xref, cont)
      page.set_contents(xref)
      assert len(page.get_contents()) == 1
      page.clean_contents()
  
imports: import io
  import os
  import fitz
  import pickle
label_desc: Use image node_id 8 for calling a global function with example usage: test_wrapcontents() without return types