code: def tmpfile(tmp_path):
      filename = tmp_path / str(random.random())
      yield str(filename)
      try:
          filename.unlink(missing_ok=True)
      except PermissionError:
          pass
  
imports: import logging
  import pytest
  import random
  import multiprocessing
label_desc: Use image node_id 1 for calling a global function with example usage: tmpfile(tmp_path) without return types