class_docstr: Static class for storing the JumpStart models cache.
class_docstr_tok: ["Static","class","for","storing","the","JumpStart","models","cache","."]
docstr: Sets cache kwargs, clears the cache.
  
  Raises:
      ValueError: If region in `cache_kwargs` is inconsistent with `region` argument.
  
  Args:
      cache_kwargs (str): cache kwargs to validate.
      region (str): Optional. The region to validate along with the kwargs.
docstr_tok: ["Sets","cache","kwargs",",","clears","the","cache",".","Raises",":","ValueError",":","If","region","in","`","cache_kwargs","`","is","inconsistent","with","`","region","`","argument",".","Args",":","cache_kwargs","(","str",")",":","cache","kwargs","to","validate",".","region","(","str",")",":","Optional",".","The","region","to","validate","along","with","the","kwargs","."]
code: def set_cache_kwargs(
      cache_kwargs: Dict[str, Any], region: str = None
  ) -> None:
      """Sets cache kwargs, clears the cache.
  
      Raises:
          ValueError: If region in `cache_kwargs` is inconsistent with `region` argument.
  
      Args:
          cache_kwargs (str): cache kwargs to validate.
          region (str): Optional. The region to validate along with the kwargs.
      """
      cache_kwargs = JumpStartModelsAccessor._validate_and_mutate_region_cache_kwargs(
          cache_kwargs, region
      )
      JumpStartModelsAccessor._cache_kwargs = cache_kwargs
      if region is None:
          JumpStartModelsAccessor._cache = cache.JumpStartModelsCache(
              **JumpStartModelsAccessor._cache_kwargs
          )
      else:
          JumpStartModelsAccessor._curr_region = region
          JumpStartModelsAccessor._cache = cache.JumpStartModelsCache(
              region=region, **JumpStartModelsAccessor._cache_kwargs
          )
  
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 10 for calling the JumpStartModelsAccessor obj's underlying member method code with example usage: obj.set_cache_kwargs(cache_kwargs, region) without return types