def open_visa_library(specification):
    """Helper function to create a VISA library wrapper.

    In general, you should not use the function directly. The VISA library
    wrapper will be created automatically when you create a ResourceManager object.
    """

    try:
        argument, wrapper = specification.split('@')
    except __HOLE__:
        argument = specification
        wrapper = 'ni'

    cls = get_wrapper_class(wrapper)

    try:
        return cls(argument)
    except Exception as e:
        logger.debug('Could not open VISA wrapper %s: %s\n%s', cls, str(argument), e)
        raise
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/open_visa_library