code: def testSessionPsetGroup(self):
      session = MPI.Session.Init()
      num_psets = session.Get_num_psets()
      for n in range(num_psets):
          name = session.Get_nth_pset(n)
          try:
              group = session.Create_group(name)
              group.Free()
              group = MPI.Group.Create_from_session_pset(session, name)
              group.Free()
          except MPI.Exception as exc:  # openmpi
              UNSUPPORTED = MPI.ERR_OTHER
              if exc.Get_error_class() != UNSUPPORTED:
                  raise
      session.Finalize()
  
file_path: mpi4py/test/test_session.py
imports: from mpi4py import MPI
  import mpiunittest
label_desc: Use image node_id 5 for calling the TestSession obj's underlying member method code with example usage: obj.testSessionPsetGroup() without return types