code: def patched_retrieval_function(
      _modelCacheObj: JumpStartModelsCache,
      key: JumpStartCachedS3ContentKey,
      value: JumpStartCachedS3ContentValue,
  ) -> JumpStartCachedS3ContentValue:
      filetype, s3_key = key.file_type, key.s3_key
      if filetype == JumpStartS3FileType.MANIFEST:
          return JumpStartCachedS3ContentValue(
              formatted_content=get_formatted_manifest(BASE_MANIFEST)
          )
  
      if filetype == JumpStartS3FileType.SPECS:
          _, model_id, specs_version = s3_key.split("/")
          version = specs_version.replace("specs_v", "").replace(
              ".json", ""
          )
          return JumpStartCachedS3ContentValue(
              formatted_content=get_spec_from_base_spec(
                  model_id=model_id, version=version
              )
          )
  
      raise ValueError(f"Bad value for filetype: {filetype}")
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/jumpstart/utils.py
imports: from __future__ import absolute_import
  import copy
  from typing import List
  import boto3
  from sagemaker.jumpstart.cache import JumpStartModelsCache
  from sagemaker.jumpstart.constants import JUMPSTART_DEFAULT_REGION_NAME, JUMPSTART_LOGGER, JUMPSTART_REGION_NAME_SET
  from sagemaker.jumpstart.types import JumpStartCachedS3ContentKey, JumpStartCachedS3ContentValue, JumpStartModelSpecs, JumpStartS3FileType, JumpStartModelHeader
  from sagemaker.jumpstart.utils import get_formatted_manifest
  from tests.unit.sagemaker.jumpstart.constants import PROTOTYPICAL_MODEL_SPECS_DICT, BASE_MANIFEST, BASE_SPEC, BASE_HEADER, SPECIAL_MODEL_SPECS_DICT
label_desc: Use image node_id 7 for calling a global function with example usage: patched_retrieval_function(_modelCacheObj, key, value) and returns: JumpStartCachedS3ContentValue, JumpStartCachedS3ContentValue