def from_record_like(rec, stream=0, gpu_data=None):
 return DeviceRecord(rec.dtype, stream=stream, gpu_data=gpu_data)

def from_record_like ( rec , stream = 0 , gpu_data = None ) : return DeviceRecord ( rec . dtype , stream = stream , gpu_data = gpu_data )
create a devicerecord object that is like rec .