def gen_function_decl(func_attrs, backend_spec):
    """Generate function declaration.

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.
    Returns
    -------
    str
        Rendered function declaration.
    """
    return FUNC_DECL_TEMPLATE.render(
        func_name=func_attrs["name"],
        index_type=backend_spec.index_type,
        prefix=backend_spec.prefix,
    )
Generate function declaration.

Parameters
----------
func_attrs : Dict[str, Any]
Stores the operation attributes.
Returns
-------
str
Rendered function declaration.
python/aitemplate/backend/common/concatenate_common.py