code: def from_dict(self, document):
          
          return PredictionImageSetHandle(
              str(document['_id']),
              document['properties'],
              [PredictionImageSet.from_dict(img) for img in document['images']],
              timestamp=datetime.datetime.strptime(
                  document['timestamp'],
                  '%Y-%m-%dT%H:%M:%S.%f'
              ),
              is_active=document['active']
          )
docs: Create a prediction image set resource from a dictionary
          serialization.
  
          Parameters
          ----------
          document : dict
              Dictionary serialization of the resource
  
          Returns
          -------
          PredictionImageSetHandle
              Handle for prediction image sets