code: def main_client(COMM):
      assert COMM.Get_size() == 1
  
      service, info = "cpi", MPI.INFO_NULL
      port = MPI.Lookup_name(service, info)
      log(COMM, "service '%s' found in port '%s'.", service, port)
  
      log(COMM, "connecting to server ...")
      icomm = COMM.Connect(port, info, root=0)
      log(COMM, "server connected.")
  
      master(icomm)
  
      log(COMM, "disconnecting from server ...")
      icomm.Disconnect()
      log(COMM, "server disconnected.")
  
file_path: mpi4py/demo/compute-pi/cpi-dpm.py
imports: import sys
  from mpi4py import MPI
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: main_client(COMM) without return types