code: def get_device_memory_info():
      """
      Returns the total amount of global memory on the device in bytes
      """
      meminfo = cuda.current_context().get_memory_info()
      return meminfo[1]
  
imports: import importlib
  import os
  import shutil
  from numba import cuda
  import cudf
  from cudf.core.column import as_column
  from cuda.cudart import cudaDeviceAttr
  from rmm._cuda.gpu import getDeviceAttribute
label_desc: Use image node_id 5 for calling a global function with example usage: get_device_memory_info() and returns: meminfo