code: def test_failed_file_resets_summary_uploaded_bytes():
      s = stats.Stats()
      s.init_file("foo", 10)
      s.init_file("bar", 10)
      s.update_uploaded_file("foo", 7)
      s.update_uploaded_file("bar", 8)
  
      assert s.summary().uploaded_bytes == 15
  
      s.update_failed_file("foo")
  
      assert s.summary().uploaded_bytes == 8
  
file_path: wandb/tests/pytest_tests/unit_tests/test_file_stats.py
imports: import pytest
  from wandb.filesync import stats
label_desc: Use image node_id 3 for calling a global function with example usage: test_failed_file_resets_summary_uploaded_bytes() without return types