(data)
return (
            hasattr(data, "count")
            and callable(data.count)
            and hasattr(data, "order_by")
            and callable(data.order_by)
        )
Validates `data` for use in this container
Validates `data` for use in this container
Validates data for use in this container
def validate(data):
        """
        Validates `data` for use in this container
        """
        return (
            hasattr(data, "count")
            and callable(data.count)
            and hasattr(data, "order_by")
            and callable(data.order_by)
        )
def validate ( data ) : return ( hasattr ( data , "count" ) and callable ( data . count ) and hasattr ( data , "order_by" ) and callable ( data . order_by ) )