code: def maxvalue(a):
      try:
          typecode = a.typecode
      except AttributeError:
          typecode = a.dtype.char
      if typecode == ("f"):
          return 1e30
      elif typecode == ("d"):
          return 1e300
      else:
          return 2 ** (a.itemsize * 7) - 1
  
imports: from mpi4py import MPI
  import mpiunittest
  import arrayimpl
  from functools import reduce
label_desc: Use image node_id 2 for calling a global function with example usage: maxvalue(a) and returns: int, int, unknown