def METHOD_NAME(cls, basetyp, baseptr, indices, strides, srcinfo):
    assert strides[-1] == "1"
    idxs = indices[:-1] or ""
    if idxs:
        idxs = "[" + "][".join(idxs) + "]"
    return f"{baseptr}{idxs}"