code: def test_get_outfile(filepath, kwargs, expected_fspath):
      result = rendering.get_outfile(filepath, **kwargs)
      assert os.fspath(result) == expected_fspath
  
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 9 for calling a global function with example usage: test_get_outfile(filepath, kwargs, expected_fspath) without return types