code: def numpyview(arr, datatype, shape, raw=False):
      
  
      if raw:
          return n.frombuffer(arr, dtype=n.dtype(datatype)).view(n.dtype(datatype)).reshape(shape)   # for shared mps.RawArray
      else:
          return n.frombuffer(arr.get_obj(), dtype=n.dtype(datatype)).view(n.dtype(datatype)).reshape(shape)
docs: Takes mp shared array and returns numpy array with given shape.