code: def test_delete_partial_file_on_error(version):
      if sys.platform == "win32":
          pytest.skip("Windows hangs on to file handle for some reason")
  
      class CustomClass:
          pass
  
      # strings will fail
      df = pd.DataFrame(
          {
              "numbers": range(5),
              "strings": [b"foo", None, "bar", CustomClass(), np.nan],
          },
          columns=["numbers", "strings"],
      )
  
      path = random_path()
      try:
          write_feather(df, path, version=version)
      except Exception:
          pass
  
      assert not os.path.exists(path)
  
imports: import io
  import os
  import sys
  import tempfile
  import pytest
  import hypothesis
  import hypothesis.strategies
  import numpy
  import pyarrow
  import pyarrow.tests.strategies
  from pyarrow.feather import read_feather, write_feather, read_table, FeatherDataset
label_desc: Use image node_id 23 for calling a global function with example usage: test_delete_partial_file_on_error(version) without return types