def gen_function_decl(func_attrs: Dict[str, Any], backend_spec) -> str:
    """Generates function decl.

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.
    backend_spec : class
        Specifies the backend configurations.

    Returns
    -------
    str
        Rendered function decl.
    """
    return FUNC_DECL.render(
        func_signature=FUNC_SIGNATURE.render(
            func_name=func_attrs["name"],
            index_type=backend_spec.index_type,
            prefix=backend_spec.prefix,
        ),
    ).strip()
Generates function decl.

Parameters
----------
func_attrs : Dict[str, Any]
Stores the operation attributes.
backend_spec : class
Specifies the backend configurations.

Returns
-------
str
Rendered function decl.
python/aitemplate/backend/common/tensor/topk_common.py