code: def comp_pi(n, myrank=0, nprocs=1):
      h = 1.0 / n
      s = 0.0
      for i in range(myrank + 1, n + 1, nprocs):
          x = h * (i - 0.5)
          s += 4.0 / (1.0 + x**2)
      return s * h
  
imports: from mpi4py import MPI
  from array import array
  from time import sleep
label_desc: Use image node_id 1 for calling a global function with example usage: comp_pi(n, myrank, nprocs) and returns: unknown