def METHOD_NAME(tmpdir):
    tmp_dir = os.path.join(tmpdir, "mytempdir")
    assert not os.path.exists(tmp_dir)
    @check_directory_exist(tmp_dir)
    def myfunc():
        return "Directory should exist after this"
    assert not os.path.exists(tmp_dir)
    assert myfunc()
    assert os.path.exists(tmp_dir)