def gen_function(func_attrs, element_func=None):
    """Generates function body.

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.

    Returns
    -------
    str
        Rendered function body.
    """
    return slice_reshape_scatter_common.gen_function(
        func_attrs, ROCMSpec(), TANH_DEF, element_func
    )
Generates function body.

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.

    Returns
    -------
    str
        Rendered function body.
    
python/aitemplate/backend/rocm/tensor/slice_reshape_scatter.py