def dlopen(ffi, *names):
    """Try various names for the same library, for different platforms."""
    for name in names:
        try:
            return ffi.dlopen(name)
        except __HOLE__:
            pass
    # Re-raise the exception.
    return ffi.dlopen(names[0])  # pragma: no cover
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/text.py/dlopen