def get_wrapper_class(backend_name):
    """Return the WRAPPER_CLASS for a given backend.

    :rtype: pyvisa.highlevel.VisaLibraryBase
    """
    try:
        return _WRAPPERS[backend_name]
    except __HOLE__:
        if backend_name == 'ni':
            from .ctwrapper import NIVisaLibrary
            _WRAPPERS['ni'] = NIVisaLibrary
            return NIVisaLibrary

    for pkgname in list_backends():
        if pkgname.endswith('-' + backend_name):
            pkg = __import__(pkgname)
            _WRAPPERS[backend_name] = cls = pkg.WRAPPER_CLASS
            return cls
    else:
        raise ValueError('Wrapper not found: No package named pyvisa-%s' % backend_name)
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/get_wrapper_class