code: def from_device(devptr, shape, dtype, order="C"):
      result = np.empty(shape, dtype, order)
      memcpy_dtoh(result, devptr)
      return result
  
imports: import os
  import numpy
label_desc: Use image node_id 23 for calling a global function with example usage: from_device(devptr, shape, dtype, order) and returns: result