class_docstr: Static class for storing and retrieving S3 payload artifacts.
class_docstr_tok: ["Static","class","for","storing","and","retrieving","S3","payload","artifacts","."]
docstr: Returns S3 object located at the bucket and key.
  
  Requests are cached so that the same S3 request is never made more
  than once, unless a different region or client is used.
docstr_tok: ["Returns","S3","object","located","at","the","bucket","and","key",".","Requests","are","cached","so","that","the","same","S3","request","is","never","made","more","than","once",",","unless","a","different","region","or","client","is","used","."]
code: def get_object_cached(
      bucket: str,
      key: str,
      region: str = JUMPSTART_DEFAULT_REGION_NAME,
      s3_client: Optional[boto3.client] = None,
  ) -> bytes:
      """Returns S3 object located at the bucket and key.
  
      Requests are cached so that the same S3 request is never made more
      than once, unless a different region or client is used.
      """
      return JumpStartS3PayloadAccessor.get_object(
          bucket=bucket, key=key, region=region, s3_client=s3_client
      )
  
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 3 for calling the JumpStartS3PayloadAccessor obj's underlying member method code with example usage: obj.get_object_cached(bucket, key, region, s3_client) and returns: JumpStartS3PayloadAccessor