code: def testAttachDetach(self):
      mem1 = MPI.Alloc_mem(8)
      mem2 = MPI.Alloc_mem(16)
      mem3 = MPI.Alloc_mem(32)
      for mem in (mem1, mem2, mem3):
          self.WIN.Attach(mem)
          self.testMemory()
          self.WIN.Detach(mem)
      for mem in (mem1, mem2, mem3):
          self.WIN.Attach(mem)
      self.testMemory()
      for mem in (mem1, mem2, mem3):
          self.WIN.Detach(mem)
      for mem in (mem1, mem2, mem3):
          self.WIN.Attach(mem)
      self.testMemory()
      for mem in (mem3, mem2, mem1):
          self.WIN.Detach(mem)
      MPI.Free_mem(mem1)
      MPI.Free_mem(mem2)
      MPI.Free_mem(mem3)
  
imports: from mpi4py import MPI
  import mpiunittest
  import sys
label_desc: Use image node_id 6 for calling the BaseTestWinCreateDynamic obj's underlying member method code with example usage: obj.testAttachDetach() without return types