def _get_library_function(self, name):
    try:
        function = getattr(self._library, name)
    except AttributeError as e:
        raise errors.DriverTooOldError() from e
    return function
def _get_library_function(self, name):
    try:
        function = getattr(self._library, name)
    except AttributeError as e:
        raise errors.DriverTooOldError() from e
    return function