code: def typestr(typecode, itemsize):
      typestr = ""
      if sys.byteorder == "little":
          typestr += "<"
      if sys.byteorder == "big":
          typestr += ">"
      if typecode in "?":
          typestr += "b"
      if typecode in "bhilq":
          typestr += "i"
      if typecode in "BHILQ":
          typestr += "u"
      if typecode in "fdg":
          typestr += "f"
      if typecode in "FDG":
          typestr += "c"
      typestr += str(itemsize)
      return typestr
  
imports: import sys
  import itertools
  from mpi4py import MPI
label_desc: Use image node_id 3 for calling a global function with example usage: typestr(typecode, itemsize) and returns: typestr