code: def tmpdir_fn():
      """Sets up a temporary directory that will be deleted after the test function finished."""
      temp_work_dir = tempfile.mkdtemp(prefix="darts")
      yield temp_work_dir
      shutil.rmtree(temp_work_dir)
  
imports: import logging
  import shutil
  import tempfile
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: tmpdir_fn() without return types