class_docstr: Test `validate_hf_hub_args` decorator calls all default validators.
class_docstr_tok: ["Test","`","validate_hf_hub_args","`","decorator","calls","all","default","validators","."]
docstr: Test `validate_repo_id` is called when `repo_id` is passed as kwarg.
docstr_tok: ["Test","`","validate_repo_id","`","is","called","when","`","repo_id","`","is","passed","as","kwarg","."]
code: def test_validate_repo_id_as_kwarg(
      self, validate_repo_id_mock: Mock
  ) -> None:
      """Test `validate_repo_id` is called when `repo_id` is passed as kwarg."""
      self.dummy_function(repo_id=123)
      validate_repo_id_mock.assert_called_once_with(123)
  
imports: import unittest
  from pathlib import Path
  from unittest.mock import Mock, patch
  from huggingface_hub.utils import HFValidationError, smoothly_deprecate_use_auth_token, validate_hf_hub_args, validate_repo_id
label_desc: Use image node_id 2 for calling the TestHfHubValidator obj's underlying member method code with example usage: obj.test_validate_repo_id_as_kwarg(validate_repo_id_mock) without return types