class_docstr: Serializer using cloudpickle.
class_docstr_tok: ["Serializer","using","cloudpickle","."]
docstr: Downloads from S3 and then deserializes data objects.
  
  Args:
      s3_uri (str): S3 root uri to which resulting serialized artifacts will be uploaded.
      bytes_to_deserialize: bytes to be deserialized.
  Returns :
      List of deserialized python objects.
  Raises:
      DeserializationError: when fail to serialize object to bytes.
docstr_tok: ["Downloads","from","S3","and","then","deserializes","data","objects",".","Args",":","s3_uri","(","str",")",":","S3","root","uri","to","which","resulting","serialized","artifacts","will","be","uploaded",".","bytes_to_deserialize",":","bytes","to","be","deserialized",".","Returns",":","List","of","deserialized","python","objects",".","Raises",":","DeserializationError",":","when","fail","to","serialize","object","to","bytes","."]
code: def deserialize(s3_uri: str, bytes_to_deserialize: bytes) -> Any:
      """Downloads from S3 and then deserializes data objects.
  
      Args:
          s3_uri (str): S3 root uri to which resulting serialized artifacts will be uploaded.
          bytes_to_deserialize: bytes to be deserialized.
      Returns :
          List of deserialized python objects.
      Raises:
          DeserializationError: when fail to serialize object to bytes.
      """
  
      try:
          return cloudpickle.loads(bytes_to_deserialize)
      except Exception as e:
          raise DeserializationError(
              "Error when deserializing bytes downloaded from {}: {}".format(
                  s3_uri, repr(e)
              )
          ) from e
  
imports: from __future__ import absolute_import
  import dataclasses
  import json
  import io
  import sys
  import hmac
  import hashlib
  import pickle
  from typing import Any, Callable, Union
  import cloudpickle
  from tblib import pickling_support
  from sagemaker.remote_function.errors import ServiceError, SerializationError, DeserializationError
  from sagemaker.s3 import S3Downloader, S3Uploader
  from sagemaker.session import Session
  from ._custom_dispatch_table import dispatch_table
label_desc: Use image node_id 2 for calling the CloudpickleSerializer obj's underlying member method code with example usage: obj.deserialize(s3_uri, bytes_to_deserialize) and returns: cloudpickle