code: def test_get_format_warns(
      outfile_name, format, expected_result, expected_warning, match
  ):
      outfile = pathlib.Path(outfile_name)
  
      with pytest.warns(expected_warning, match=match):
          result = rendering.get_format(outfile, format=format)
  
      assert result == expected_result
  
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 12 for calling a global function with example usage: test_get_format_warns(outfile_name, format, expected_result, expected_warning, match) without return types