code: def main_parent(nprocs=1):
      assert nprocs > 0
      assert MPI.COMM_WORLD.Get_size() == 1
      icomm = MPI.COMM_WORLD.Spawn(
          command=sys.executable,
          args=[__file__, "child"],
          maxprocs=nprocs,
      )
      master(icomm)
      icomm.Disconnect()
  
file_path: mpi4py/demo/compute-pi/cpi-dpm.py
imports: import sys
  from mpi4py import MPI
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: main_parent(nprocs) without return types