code: def test_get_format(outfile_name, format, expected_result):
      outfile = pathlib.Path(outfile_name)
  
      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 11 for calling a global function with example usage: test_get_format(outfile_name, format, expected_result) without return types