def __eq__(self, other):
    return (isinstance(other, GroupByKey) and (other.collection == self.collection))
def __eq__(self, other):
    return (isinstance(other, GroupByKey) and (other.collection == self.collection))