code: def test_explicit_file(self):
      # Weird case: if user explicitly set as file (`is_folder`=False) but path has a
      # trailing "/" => user input has priority
      self.assertFalse(
          CommitOperationDelete(
              path_in_repo="path/to/folder/", is_folder=False
          ).is_folder
      )
      self.assertFalse(
          CommitOperationDelete(
              path_in_repo="path/to/folder.md/", is_folder=False
          ).is_folder
      )
  
imports: import unittest
  from huggingface_hub._commit_api import CommitOperationAdd, CommitOperationDelete, _warn_on_overwriting_operations
label_desc: Use image node_id 3 for calling the TestCommitOperationDelete obj's underlying member method code with example usage: obj.test_explicit_file() without return types