code: def test_register_host_memory(self):
      if drv.get_version() < (4,):
          from py.test import skip
  
          skip("register_host_memory only exists on CUDA 4.0 and later")
  
      import sys
  
      if sys.platform == "darwin":
          from py.test import skip
  
          skip("register_host_memory is not supported on OS X")
  
      a = drv.aligned_empty((2**20,), np.float64)
      a_pin = drv.register_host_memory(a)
  
      gpu_ary = drv.mem_alloc_like(a)
      stream = drv.Stream()
      drv.memcpy_htod_async(gpu_ary, a_pin, stream)
      drv.Context.synchronize()
  
imports: import numpy
  import numpy.linalg
  from pycuda.tools import mark_cuda_test, dtype_to_ctype
  import pytest
  import pycuda.gpuarray
  import pycuda.driver
  from pycuda.compiler import SourceModule
label_desc: Use image node_id 29 for calling the TestDriver obj's underlying member method code with example usage: obj.test_register_host_memory() without return types