<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_dict(self, document):
 """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 """

        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']
        )