def _are_subscriptions_identical(self):
        """
        Returns:
            true, if both potential consumers of partitions and potential partitions that consumers can
            consume are the same
        """
        if not has_identical_list_elements(list(six.itervalues(self.partition_to_all_potential_consumers))):
            return False
        return has_identical_list_elements(list(six.itervalues(self.consumer_to_all_potential_partitions)))

        Returns:
            true, if both potential consumers of partitions and potential partitions that consumers can
            consume are the same
        
kafka/coordinator/assignors/sticky/sticky_assignor.py