def get_nvml():
 if (platform.system() == 'Windows'):
  return get_library('nvml.dll')
 else:
  for name in ('libnvidia-ml.so.1', 'libnvidia-ml.so', 'nvml.so'):
   nvml = get_library(name)
   if (nvml is not None):
    return nvml
 return None

def get_nvml ( ) : if ( platform . system ( ) == 'Windows' ) : return get_library ( 'nvml.dll' ) else : for name in ( 'libnvidia-ml.so.1' , 'libnvidia-ml.so' , 'nvml.so' ) : nvml = get_library ( name ) if ( nvml is not None ) : return nvml return None
return the ctypes .