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 math import pi
  from numpy import array
label_desc: Use image node_id 2 for calling a global function with example usage: comp_pi(n, myrank, nprocs) and returns: unknown