code: def __init__(self, size):
      self.size = size
      self.device_id = cupy.cuda.device.get_device_id()
      self.ptr = 0
      if size > 0:
          self.ptr = cupy.cuda.runtime.hostAlloc(size, 0)
  
imports: import numpy
  import cupy
  import torch
  import os
  from torch.utils.dlpack import to_dlpack
  from torch.utils.dlpack import from_dlpack
label_desc: Use image node_id 1 to create a new PMemory object from inherited base classes: cupy.cuda.memory with example: obj = PMemory(size)