Trivial Python code checking the intersection of the empty group with itself.
# file: tmp.py
from mpi4py import MPI
empty = MPI.Group.Intersection(MPI.GROUP_EMPTY, MPI.GROUP_EMPTY)
assert MPI.Group.Compare(empty, MPI.GROUP_EMPTY) in [MPI.IDENT, MPI.CONGRUENT]
$ mpiexec -n 1 python tmp.py
malloc debug: Request for 0 bytes (group/group.c, 456)