def METHOD_NAME(xa: Object, index: IntegerLike, *, advanced: bool = False) -> Object:
    """
    Look up the entry at a given index in an XArray.
    >>> entry = xa_load(inode.i_mapping.i_pages.address_of_(), 2)
    >>> cast("struct page *", entry)
    *(struct page *)0xffffed6980306f40 = {
        ...
    }
    :param xa: ``struct xarray *``
    :param index: Entry index.
    :param advanced: Whether to return nodes only visible to the XArray
        advanced API. If ``False``, zero entries (see :func:`xa_is_zero()`)
        will be returned as ``NULL``.
    :return: ``void *`` found entry, or ``NULL`` if not found.
    """
    entry = _linux_helper_xa_load(xa, index)
    if not advanced and entry.value_() == _XA_ZERO_ENTRY:
        return NULL(xa.prog_, "void *")
    return entry