code: def tmpfile():
      # NOTE: instead of using a with block and delete=True we are creating and
      # manually deleting the file, such that we can close it before running the
      # tests. This is necessary since on Windows we can not open the same file
      # twice, so for the FileStorageObserver to read it, we need to close it.
      f = tempfile.NamedTemporaryFile(suffix=".py", delete=False)
  
      f.content = "import sacred\n"
      f.write(f.content.encode())
      f.flush()
      f.seek(0)
      f.md5sum = hashlib.md5(f.read()).hexdigest()
  
      f.close()
  
      yield f
  
      os.remove(f.name)
  
file_path: sacred/tests/conftest.py
imports: import pytest
  import tempfile
  import hashlib
  import os.path
  import re
  import shlex
  import sys
  import warnings
  from importlib import reload
  from sacred.settings import SETTINGS
label_desc: Use image node_id 4 for calling a global function with example usage: tmpfile() without return types