code: def test_haslinks():
      doc = fitz.open(filename)
      assert doc.has_links() == False
  
imports: import io
  import os
  import fitz
  import pickle
label_desc: Use image node_id 1 for calling a global function with example usage: test_haslinks() without return types