code: def test_jumpstart_models_cache_get_fxs(mock_cache):
      mock_cache.get_manifest = Mock(return_value=BASE_MANIFEST)
      mock_cache.get_header = Mock(
          side_effect=get_header_from_base_header
      )
      mock_cache.get_specs = Mock(side_effect=get_spec_from_base_spec)
  
      assert get_header_from_base_header(
          region="us-west-2",
          model_id="pytorch-ic-mobilenet-v2",
          version="*",
      ) == accessors.JumpStartModelsAccessor.get_model_header(
          region="us-west-2",
          model_id="pytorch-ic-mobilenet-v2",
          version="*",
      )
      assert get_spec_from_base_spec(
          region="us-west-2",
          model_id="pytorch-ic-mobilenet-v2",
          version="*",
      ) == accessors.JumpStartModelsAccessor.get_model_specs(
          region="us-west-2",
          model_id="pytorch-ic-mobilenet-v2",
          version="*",
      )
  
      assert len(accessors.JumpStartModelsAccessor._get_manifest()) > 0
  
      # necessary because accessors is a static module
      reload(accessors)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/jumpstart/test_accessors.py
imports: from __future__ import absolute_import
  from io import BytesIO
  from unittest import TestCase
  from mock.mock import Mock, patch
  import pytest
  from sagemaker.jumpstart import accessors
  from tests.unit.sagemaker.jumpstart.constants import BASE_MANIFEST
  from tests.unit.sagemaker.jumpstart.utils import get_header_from_base_header, get_spec_from_base_spec
  from importlib import reload
label_desc: Use image node_id 2 for calling a global function with example usage: test_jumpstart_models_cache_get_fxs(mock_cache) without return types