class_docstr: Class that implements a cache for JumpStart models manifests and specs.
  
  The manifest and specs associated with JumpStart models provide the information necessary
  for launching JumpStart models from the SageMaker SDK.
docstr: Returns json file either from s3 or local file system.
  
  Returns etag along with json object for s3, or just the json
  object and None when reading from the local file system.
docstr_tok: ["Returns","json","file","either","from","s3","or","local","file","system",".","Returns","etag","along","with","json","object","for","s3",",","or","just","the","json","object","and","None","when","reading","from","the","local","file","system","."]
code: def _get_json_file(
      self, key: str, filetype: JumpStartS3FileType
  ) -> Tuple[Union[dict, list], Optional[str]]:
      """Returns json file either from s3 or local file system.
  
      Returns etag along with json object for s3, or just the json
      object and None when reading from the local file system.
      """
      if self._is_local_metadata_mode():
          file_content, etag = (
              self._get_json_file_from_local_override(key, filetype),
              None,
          )
      else:
          file_content, etag = self._get_json_file_and_etag_from_s3(key)
      return file_content, etag
  
imports: from __future__ import absolute_import
  import datetime
  from difflib import get_close_matches
  import os
  from typing import List, Optional, Tuple, Union
  import json
  import boto3
  import botocore
  from packaging.version import Version
  from packaging.specifiers import SpecifierSet, InvalidSpecifier
  from sagemaker.jumpstart.constants import ENV_VARIABLE_JUMPSTART_MANIFEST_LOCAL_ROOT_DIR_OVERRIDE, ENV_VARIABLE_JUMPSTART_SPECS_LOCAL_ROOT_DIR_OVERRIDE, JUMPSTART_DEFAULT_MANIFEST_FILE_S3_KEY, JUMPSTART_DEFAULT_REGION_NAME, JUMPSTART_LOGGER, MODEL_ID_LIST_WEB_URL
  from sagemaker.jumpstart.exceptions import get_wildcard_model_version_msg
  from sagemaker.jumpstart.parameters import JUMPSTART_DEFAULT_MAX_S3_CACHE_ITEMS, JUMPSTART_DEFAULT_MAX_SEMANTIC_VERSION_CACHE_ITEMS, JUMPSTART_DEFAULT_S3_CACHE_EXPIRATION_HORIZON, JUMPSTART_DEFAULT_SEMANTIC_VERSION_CACHE_EXPIRATION_HORIZON
  from sagemaker.jumpstart.types import JumpStartCachedS3ContentKey, JumpStartCachedS3ContentValue, JumpStartModelHeader, JumpStartModelSpecs, JumpStartS3FileType, JumpStartVersionedModelId
  from sagemaker.jumpstart import utils
  from sagemaker.utilities.cache import LRUCache
label_desc: Use image node_id 11 for calling the JumpStartModelsCache obj's underlying member method code with example usage: obj._get_json_file(key, filetype) and returns: file_content,  etag