class_docstr: Static class for storing the JumpStart models cache.
class_docstr_tok: ["Static","class","for","storing","the","JumpStart","models","cache","."]
docstr: Returns model specs from JumpStart models cache.
  
  Args:
      region (str): region for which to retrieve header.
      model_id (str): model ID to retrieve.
      version (str): semantic version to retrieve for the model ID.
      s3_client (boto3.client): boto3 client to use for accessing JumpStart models s3 cache.
          If not set, a default client will be made.
docstr_tok: ["Returns","model","specs","from","JumpStart","models","cache",".","Args",":","region","(","str",")",":","region","for","which","to","retrieve","header",".","model_id","(","str",")",":","model","ID","to","retrieve",".","version","(","str",")",":","semantic","version","to","retrieve","for","the","model","ID",".","s3_client","(","boto3.client",")",":","boto3","client","to","use","for","accessing","JumpStart","models","s3","cache",".","If","not","set",",","a","default","client","will","be","made","."]
code: def get_model_specs(
      region: str,
      model_id: str,
      version: str,
      s3_client: Optional[boto3.client] = None,
  ) -> JumpStartModelSpecs:
      """Returns model specs from JumpStart models cache.
  
      Args:
          region (str): region for which to retrieve header.
          model_id (str): model ID to retrieve.
          version (str): semantic version to retrieve for the model ID.
          s3_client (boto3.client): boto3 client to use for accessing JumpStart models s3 cache.
              If not set, a default client will be made.
      """
  
      additional_kwargs = {}
      if s3_client is not None:
          additional_kwargs.update({"s3_client": s3_client})
  
      cache_kwargs = JumpStartModelsAccessor._validate_and_mutate_region_cache_kwargs(
          {**JumpStartModelsAccessor._cache_kwargs, **additional_kwargs}
      )
      JumpStartModelsAccessor._set_cache_and_region(
          region, cache_kwargs
      )
      return JumpStartModelsAccessor._cache.get_specs(  # type: ignore
          model_id=model_id, semantic_version_str=version
      )
  
imports: from __future__ import absolute_import
  import functools
  from typing import Any, Dict, List, Optional
  import boto3
  from sagemaker.deprecations import deprecated
  from sagemaker.jumpstart.types import JumpStartModelHeader, JumpStartModelSpecs
  from sagemaker.jumpstart import cache
  from sagemaker.jumpstart.constants import JUMPSTART_DEFAULT_REGION_NAME
label_desc: Use image node_id 9 for calling the JumpStartModelsAccessor obj's underlying member method code with example usage: obj.get_model_specs(region, model_id, version, s3_client) and returns: JumpStartModelsAccessor