code: def win_lock(win, rank, *args, **kwargs):
      win.Lock(rank, *args, **kwargs)
      try:
          yield
      finally:
          win.Unlock(rank)
  
imports: from mpi4py import MPI
  import mpiunittest
  import contextlib
  import arrayimpl
label_desc: Use image node_id 3 for calling a global function with example usage: win_lock(win, rank) without return types