def METHOD_NAME():
    index = "test_index"
    def test_temporary_index_with_args(*args):
        with temporary_index(index, *args):
            assert manager.index_exists(index)
        assert not manager.index_exists(index)
    yield test_temporary_index_with_args,  # without type/mapping
    yield test_temporary_index_with_args, "test_doc", {"_meta": {}}  # with type/mapping