code: def log_memory_usage(name, start_mem, end_mem):
      test = GPU_Memory(name, start_mem, end_mem, end_mem - start_mem)
      Settings.memory_list.append(test)
  
imports: from pynvml import nvmlDeviceGetHandleByIndex, nvmlDeviceGetMemoryInfo
  from Configuration import Settings
label_desc: Use image node_id 2 for calling a global function with example usage: log_memory_usage(name, start_mem, end_mem) without return types