code: def test_get_format_raises(outfile_name, expected_exception, match):
      outfile = pathlib.Path(outfile_name)
  
      with pytest.raises(expected_exception, match=match):
          rendering.get_format(outfile, format=None)
  
imports: import pathlib
  import os
  import shutil
  import subprocess
  import pytest
  import graphviz
  from graphviz import _tools
  from graphviz.backend import rendering
  import _common
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_format_raises(outfile_name, expected_exception, match) without return types