code: def test_metadata():
      assert json.dumps(doc.metadata) == open(metafile).read()
  
imports: import json
  import os
  import fitz
label_desc: Use image node_id 1 for calling a global function with example usage: test_metadata() without return types