def METHOD_NAME(
    buffer: Buffer,
    indices: List[PrimExpr],
    loops: List[For],
    predicate: PrimExpr,
) -> Optional[IndexMap]:
    """Provided the access pattern to a buffer, suggest one of the possible layout
    transformation to maximize the locality of the access pattern.
    Parameters
    ----------
    buffer : Buffer
        The buffer to be transformed.
    indices : List[PrimExpr]
        The access pattern to the buffer.
    loops : List[For]
        The loops above the buffer.
    predicate : PrimExpr
        The predicate of the access.
    Returns
    -------
    index_map : Optional[IndexMap]
        The suggested index map. None if no transformation is suggested.
    """
    return _ffi_api.SuggestIndexMap(  # type: ignore # pylint: disable=no-member
        buffer,
        indices,
        loops,
        predicate,
    )