def METHOD_NAME(
    op_name,
    target,
    *,
    f=None,
    level=10,
):
    """Register Op lowering function
    Parameters
    ----------
    op_name : str
        The op name
    target : str
        The target string for given intrinsic lowering function
    f : function, optional
        The function to be registered.
    level : int
        The priority level
    Returns
    -------
    fregister : function
        Register op lowering function if f is not specified.
    """
    def _register(f):
        """internal register function"""
        _ffi_api.RegisterOpLowerIntrinsic(op_name, f, target, level)
        return f
    return _register(f) if f is not None else _register