def METHOD_NAME(self):
    rank, ranks, my_pg = self.setup_sub_pg()
    out_list = [None] * len(ranks) if rank == ranks[0] else None
    dist.gather_object(rank, out_list, dst=ranks[0], group=my_pg)
    if rank == ranks[0]:
        self.assertEqual(ranks, out_list)