code: def view(pi, np=None, wt=None):
      from math import pi as PI
  
      prn = sys.stdout.write
      if pi is not None:
          prn("computed pi is:  %.16f\n" % pi)
          prn("absolute error:  %.16f\n" % abs(pi - PI))
      if np is not None:
          prn("computing units: %d processes\n" % np)
      if wt is not None:
          prn("wall clock time: %g seconds\n" % wt)
      sys.stdout.flush()
  
file_path: mpi4py/demo/compute-pi/cpi-dpm.py
imports: import sys
  from mpi4py import MPI
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: view(pi, np, wt) without return types