code: def test_teardown(tmpdir):
      fname = tmpdir.join("ha")
      with pytest.raises(AssertionError):
          with atomic_write(str(fname), overwrite=True):
              assert False
  
      assert not tmpdir.listdir()
  
file_path: catboost/contrib/python/atomicwrites/py2/tests/test_atomicwrites.py
imports: import errno
  import os
  from atomicwrites import atomic_write
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_teardown(tmpdir) without return types