code: def test_get_object(self, mocked_boto3_client):
      # required due to static class
      reload(accessors)
  
      mocked_boto3_client.return_value = Mock()
  
      mocked_boto3_client.return_value.get_object.return_value = {
          "Body": BytesIO(b"s3-object")
      }
      mocked_boto3_client.return_value.head_object.return_value = {
          "ContentLength": 1
      }
  
      response = accessors.JumpStartS3PayloadAccessor.get_object(
          bucket=self.bucket, key=self.key
      )
  
      self.assertEqual(response, b"s3-object")
  
      mocked_boto3_client.assert_called_once_with(
          "s3", region_name="us-west-2"
      )
      mocked_boto3_client.return_value.get_object.assert_called_once_with(
          Bucket=self.bucket, Key=self.key
      )
      mocked_boto3_client.return_value.head_object.assert_called_once_with(
          Bucket=self.bucket, Key=self.key
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/jumpstart/test_accessors.py
imports: from __future__ import absolute_import
  from io import BytesIO
  from unittest import TestCase
  from mock.mock import Mock, patch
  import pytest
  from sagemaker.jumpstart import accessors
  from tests.unit.sagemaker.jumpstart.constants import BASE_MANIFEST
  from tests.unit.sagemaker.jumpstart.utils import get_header_from_base_header, get_spec_from_base_spec
  from importlib import reload
label_desc: Use image node_id 1 for calling the TestS3Accessor obj's underlying member method code with example usage: obj.test_get_object(mocked_boto3_client) without return types