def get_objects_with_object(self, obj_type, *child_types):
        """
        :param obj_type: requested object type.
        :param child_type: requested child types.
        :return: all children of the requested type that have the requested child types.
        """

        return [o for o in self.get_objects_by_type(obj_type) if
                o.get_objects_by_type(*child_types)]
def get_objects_with_object ( self , obj_type , * child_types ) : return [ o for o in self . get_objects_by_type ( obj_type ) if o . get_objects_by_type ( * child_types ) ]
:param obj_type: requested object type.
        :param child_type: requested child types.
        :return: all children of the requested type that have the requested child types.