<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dict(self, img_sets):
 """Create a dictionary serialization for a prediction image set handle. Parameters img_sets : PredictionImageSetHandle Returns ------- dict Dictionary serialization of the resource """

        # Get the basic Json object from the super class
        json_obj = super(DefaultPredictionImageSetManager, self).to_dict(img_sets)
        # Add list of image sets as Json array
        json_obj['images'] = [img_set.to_dict() for img_set in img_sets.images]
        return json_obj