code: def test_incomplete_file(tmp_path: pathlib.Path):
      tmp_path = epath.Path(tmp_path)
      filepath = tmp_path / "test.txt"
      with py_utils.incomplete_file(filepath) as tmp_filepath:
          tmp_filepath.write_text("content")
          assert not filepath.exists()
      assert filepath.read_text() == "content"
      assert not tmp_filepath.exists()
  
imports: import collections
  import pathlib
  from etils import epath
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import py_utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_incomplete_file(tmp_path) without return types