def get_library(name):
    """
    Returns a ctypes.CDLL or None
    """
    try:
        if platform.system() == 'Windows':
            return ctypes.windll.LoadLibrary(name)
        else:
            return ctypes.cdll.LoadLibrary(name)
    except __HOLE__:
        pass
    return None
dataset/ETHPy150Open NVIDIA/DIGITS/digits/device_query.py/get_library