code: def test_upload_folder_mock(
      self, create_mock: Mock, upload_mock: Mock, repo_info_mock: Mock
  ) -> None:
      with SoftTemporaryDirectory() as cache_dir:
          cmd = UploadCommand(
              self.parser.parse_args(
                  [
                      "upload",
                      "my-model",
                      cache_dir,
                      ".",
                      "--private",
                      "--include",
                      "*.json",
                      "--delete",
                      "*.json",
                  ]
              )
          )
          cmd.run()
  
          create_mock.assert_called_once_with(
              repo_id="my-model",
              repo_type="model",
              exist_ok=True,
              private=True,
              space_sdk=None,
          )
          upload_mock.assert_called_once_with(
              folder_path=cache_dir,
              path_in_repo=".",
              repo_id=create_mock.return_value.repo_id,
              repo_type="model",
              revision=None,
              commit_message=None,
              commit_description=None,
              create_pr=False,
              allow_patterns=["*.json"],
              ignore_patterns=None,
              delete_patterns=["*.json"],
          )
  
imports: import os
  import unittest
  import warnings
  from argparse import ArgumentParser, Namespace
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Generator
  from unittest.mock import Mock, patch
  from huggingface_hub.commands.delete_cache import DeleteCacheCommand
  from huggingface_hub.commands.download import DownloadCommand
  from huggingface_hub.commands.scan_cache import ScanCacheCommand
  from huggingface_hub.commands.upload import UploadCommand
  from huggingface_hub.utils import RevisionNotFoundError, SoftTemporaryDirectory, capture_output
  from .testing_utils import DUMMY_MODEL_ID
label_desc: Use image node_id 14 for calling the TestUploadCommand obj's underlying member method code with example usage: obj.test_upload_folder_mock(create_mock, upload_mock, repo_info_mock) without return types