code: def mpraw_as_np(shape, dtype):
      
  
      sz = int(np.product(shape))
      csz = sz * np.dtype(dtype).itemsize
      raw = mp.RawArray('c', csz)
      return np.frombuffer(raw, dtype=dtype, count=sz).reshape(shape)
docs: Construct a numpy array of the specified shape and dtype for which the
      underlying storage is a multiprocessing RawArray in shared memory.
  
      Parameters
      ----------
      shape : tuple
        Shape of numpy array
      dtype : data-type
        Data type of array
  
      Returns
      -------
      arr : ndarray
        Numpy array