def METHOD_NAME(self):
    q = self.root.sf.getQueryService()
    a = self.root.sf.getAdminService()
    groups = a.lookupGroups()
    for group in groups:
        rtypeseqseq = q.projection(
            """
            select p.pixelsType.value,
            sum(cast(p.sizeX as long) * p.sizeY
                * p.sizeZ * p.sizeT * p.sizeC)
            from Pixels p group by p.pixelsType.value
            """,
            None, {"omero.group": native_str(group.id.val)})
        rv = unwrap(rtypeseqseq)
        as_map = dict()
        for obj_array in rv:
            as_map[obj_array[0]] = obj_array[1]
        if len(as_map) > 0:
            print("Group %s: %s" % (group.id.val, as_map))