code: def test_huggingface_model_metadata_gated_success(
      self, mock_json, mock_urllib
  ):
      mock_json.load.return_value = MOCK_HF_MODEL_METADATA_JSON
      mock_hf_model_metadata_url = Mock()
      mock_urllib.request.Request.side_effect = (
          mock_hf_model_metadata_url
      )
  
      ret_json = get_huggingface_model_metadata(
          MOCK_HF_ID, MOCK_HF_HUB_TOKEN
      )
  
      mock_urllib.request.Request.assert_called_once_with(
          f"https://huggingface.co/api/models/{MOCK_HF_ID}",
          None,
          {"Authorization": "Bearer " + MOCK_HF_HUB_TOKEN},
      )
      self.assertEqual(ret_json["mock_key"], "mock_value")
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/huggingface/test_llm_utils.py
imports: from __future__ import absolute_import
  from unittest import TestCase
  from urllib.error import HTTPError
  from unittest.mock import Mock, patch
  from sagemaker.huggingface.llm_utils import get_huggingface_model_metadata
label_desc: Use image node_id 2 for calling the LlmUtilsTests obj's underlying member method code with example usage: obj.test_huggingface_model_metadata_gated_success(mock_json, mock_urllib) without return types