def METHOD_NAME() -> Any:
    """Import the libgpiod bindings.
    If gpiod is not available, a mock will be used and the problem will be logged.
    """
    try:
        import gpiod  # type: ignore[import]
        return gpiod
    except ImportError:
        LOG.warning("could not import gpiod")
        return mock.MagicMock()