def gen_function(func_attrs, template_path):
    """
    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Attributes from Operator
    template_path : str
        path to library used

    Returns
    -------
    str
        Source code for function generated.
    """
    return permute0213_common.gen_function(
        func_attrs,
        template_path,
        Header_files,
        ROCMSpec(),
    )
Parameters
----------
func_attrs : Dict[str, Any]
Attributes from Operator
template_path : str
path to library used

Returns
-------
str
Source code for function generated.
python/aitemplate/backend/rocm/tensor/permute0213.py