code: def test_add_then_delete_folder(self) -> None:
      with self.assertWarns(UserWarning):
          _warn_on_overwriting_operations(
              [self.add_file_abc, self.delete_folder_a]
          )
  
      with self.assertWarns(UserWarning):
          _warn_on_overwriting_operations(
              [self.add_file_ab, self.delete_folder_a]
          )
  
imports: import unittest
  from huggingface_hub._commit_api import CommitOperationAdd, CommitOperationDelete, _warn_on_overwriting_operations
label_desc: Use image node_id 4 for calling the TestWarnOnOverwritingOperations obj's underlying member method code with example usage: obj.test_add_then_delete_folder() without return types