code: def compute_pi(n):
      comm = get_comm_workers()
      comm.barrier()
  
      n = comm.bcast(n, root=0)
      h = 1.0 / n
      s = 0.0
      for i in range(comm.rank + 1, n + 1, comm.size):
          x = h * (i - 0.5)
          s += 4.0 / (1.0 + x**2)
      pi = comm.allreduce(s * h)
      return pi
  
imports: import math
  import sys
  from mpi4py.futures import MPIPoolExecutor, wait
  from mpi4py.futures import get_comm_workers
label_desc: Use image node_id 1 for calling a global function with example usage: compute_pi(n) and returns: pi