def METHOD_NAME(data):
    """Compute definition of invert_permutation.
    For an output tensor y and an input tensor x, this operation computes the following:
       y[x[i]] = i for i in [0, 1, ..., len(x) - 1]
    Parameters
    ----------
    data : tvm.te.Tensor
        1-D tensor
    Returns
    -------
    out : tvm.te.Tensor
    """
    data_buf = tvm.tir.decl_buffer(data.shape, data.dtype, "data_buf", data_alignment=8)
    out_buf = tvm.tir.decl_buffer(data.shape, data.dtype, "out_buf", data_alignment=8)
    out = te.extern(
        [data.shape],
        [data],
        lambda ins, outs: _invert_permutation_ir(ins[0], outs[0]),
        in_buffers=[
            data_buf,
        ],
        out_buffers=[
            out_buf,
        ],
        name="invert_permutation",
        tag="invert_permutation_gpu",
    )
    return out