code: def test_readme1():
      nvmlInit()
      print("Driver Version: {}".format(nvmlSystemGetDriverVersion()))
      deviceCount = nvmlDeviceGetCount()
      for i in range(deviceCount):
          handle = nvmlDeviceGetHandleByIndex(i)
          print("Device {}: {}".format(i, nvmlDeviceGetName(handle)))
  
      nvmlShutdown()
  
file_path: py3nvml/tests/test_py3nvml.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from time import sleep
  from py3nvml.py3nvml import *
  import pytest
  from py3nvml.utils import grab_gpus, get_free_gpus
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: test_readme1() without return types