code: def test_open_exceptions():
      try:
          doc = fitz.open(filename, filetype="xps")
      except RuntimeError as e:
          assert repr(e).startswith("FileDataError")
  
      try:
          doc = fitz.open(filename, filetype="xxx")
      except Exception as e:
          assert repr(e).startswith("ValueError")
  
      try:
          doc = fitz.open("x.y")
      except Exception as e:
          assert repr(e).startswith("FileNotFoundError")
  
      try:
          doc = fitz.open("pdf", b"")
      except RuntimeError as e:
          assert repr(e).startswith("EmptyFileError")
  
imports: import io
  import os
  import fitz
  import pickle
label_desc: Use image node_id 15 for calling a global function with example usage: test_open_exceptions() without return types