The shmem_ctx_get_team routine returns a handle to the team associated
with the specified communication context ctx. The team handle is returned
through the pointer argument team.
If ctx is the default context or one created by a call to shmem_ctx_create,
team is assigned the handle value SHMEM_TEAM_WORLD.
If ctx compares equal to SHMEM_CTX_INVALID, then team is assigned the value
SHMEM_TEAM_INVALID and a nonzero value is returned. If ctx is otherwise
invalid, the behavior is undefined.
If team is a null pointer, the behavior is undefined.